Displaying 1 result from an estimated 1 matches for "cmake_compiler_is_clang".
2011 Apr 30
0
[LLVMdev] Compiling my LLVM-based project using clang
...cmake script to do the build, and I didn't specify any
overrides for CFLAGS or anything like that, so the libraries will be
compiled with whatever compiler options are the default.
For my frontend, the compiler options that I passed to clang are pretty much
the same as what I pass to gcc:
if (CMAKE_COMPILER_IS_CLANG)
add_definitions(
-Wall
-Wextra
-Werror
-Wcast-align
-Wpointer-arith
-Wno-deprecated
-Wno-unused-parameter
-fno-rtti
-fno-exceptions
-fPIC
)
set(CMAKE_EXE_LINKER_FLAGS -lstdc++)
endif (CMAKE_COMPILER_IS_CLANG)
Since my host system...