Displaying 1 result from an estimated 1 matches for "cxx_flgs".
Did you mean:
cxx_flags
2012 Mar 13
2
[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?
...ble, mine is "-fPIC
-fvisibility-inlines-hidden". It means, no matter how a single
CMakeLists.txt changes CMAKE_CXX_FLAGS, it will remain the same when it
goes into another CMakeLists.txt.
Inside the llvm-config's source folder, the CMakeLists.txt shows how its
--cxxflags is set:
set(CXX_FLGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_
CMAKE_BUILD_TYPE}} ${LLVM_DEFINITIONS}")
...
COMMAND echo s!@LLVM_CXXFLAGS@!${CXX_FLGS}! >> ${SEDSCRIPT_OBJPATH}
and my LLVM_DEFINITIONS is:
-D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic
-Wno-long-long -D...