-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeClang.txt
23 lines (19 loc) · 969 Bytes
/
CMakeClang.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#set(CLANG_PATH "~/Programs/llvm/")
set(CLANG_BIN_PATH "") #${CLANG_PATH}bin/")
set(CMAKE_C_COMPILER "${CLANG_BIN_PATH}clang")
set(CMAKE_C_FLAGS "-Wall -std=c99")
set(CMAKE_C_FLAGS_DEBUG "-g")
set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O4 -DNDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_CXX_COMPILER "${CLANG_BIN_PATH}clang++")
set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -stdlib=libc++ -v")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O4 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_AR "${CLANG_BIN_PATH}llvm-ar")
set(CMAKE_LINKER "${CLANG_BIN_PATH}llvm-ld")
set(CMAKE_NM "${CLANG_BIN_PATH}llvm-nm")
set(CMAKE_OBJDUMP "${CLANG_BIN_PATH}llvm-objdump")
set(CMAKE_RANLIB "${CLANG_BIN_PATH}llvm-ranlib")