forked from timniederhausen/gn-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gni
44 lines (35 loc) · 892 Bytes
/
settings.gni
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
if (is_clang) {
import("//build/toolchain/clang.gni")
}
declare_args() {
# Path of the GCC C compiler executable.
gcc_cc = "gcc"
# Path of the GCC C++ compiler executable.
gcc_cxx = "g++"
# Path of the Clang C compiler executable.
# Defaults to either $clang_base_path/bin/clang or clang.
clang_cc = 0
# Path of the Clang C++ compiler executable.
# Defaults to either $clang_base_path/bin/clang++ or clang++.
clang_cxx = 0
# Path of the 'readelf' utility.
readelf = "readelf"
# Path of the 'ar' utility.
ar = "ar"
# Path of the 'nm' utility.
nm = "nm"
}
if (is_clang && clang_cc == 0) {
if (clang_base_path != "") {
clang_cc = "$clang_base_path/clang"
} else {
clang_cc = "clang"
}
}
if (is_clang && clang_cxx == 0) {
if (clang_base_path != "") {
clang_cxx = "$clang_base_path/clang++"
} else {
clang_cxx = "clang++"
}
}