llvm.org GIT mirror llvm / e2aa5d5
Add -D__STDC_FORMAT_MACROS to use PRIx64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141663 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 8 years ago
3 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
622622 endif # !HOST_OS - AuroraUX.
623623
624624 LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
625 CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
625 CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
626626 # All -I flags should go here, so that they don't confuse llvm-config.
627627 CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
628628 $(patsubst %,-I%/include,\
186186 endif( MSVC )
187187
188188 add_llvm_definitions( -D__STDC_CONSTANT_MACROS )
189 add_llvm_definitions( -D__STDC_FORMAT_MACROS )
189190 add_llvm_definitions( -D__STDC_LIMIT_MACROS )
190191
191192 option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON)
163163 #ifndef UINT64_C
164164 # define UINT64_C(C) C##ui64
165165 #endif
166
167 #ifndef PRIx64
168 # define PRIx64 "I64x"
169 #endif
170
166171 #endif /* _MSC_VER */
167172
168173 /* Set defaults for constants which we cannot find. */