aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/clang.txt
blob: c573eb5501aeaa997c88990bbd2c595face562ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Largely copied from the gcc config

macro_name CLANG

binary_name clang++

compile_option "-c "
output_to_option "-o "
add_include_dir_option -I
add_lib_dir_option -L
add_lib_option -l

lang_flags "-D_REENTRANT -std=c++0x"
warning_flags "-W -Wall"

makefile_style unix

lib_opt_flags "-O2"
check_opt_flags "-O2"
shared_flags "-fPIC"
debug_flags -g
no_debug_flags "-finline-functions"

visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'

<so_link_flags>
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
</so_link_flags>

<mach_opt>
x86_64    -> "-march=SUBMODEL"
nehalem   -> "-march=corei7"
westmere  -> "-march=corei7 -maes"
</mach_opt>

<mach_abi_linking>
all     -> "-stdlib=libc++ -pthread"

x86_64  -> "-m64"
ppc64   -> "-m64"

netbsd  -> "-D_NETBSD_SOURCE"
</mach_abi_linking>