@@ -17,12 +17,16 @@ write_cmake_config("lit_site_cfg") {
17
17
" ASAN_TEST_BITS=64" ,
18
18
" ASAN_TEST_APPLE_PLATFORM=" ,
19
19
" ASAN_TEST_MIN_DEPLOYMENT_TARGET_FLAG=" ,
20
- " ASAN_TEST_DYNAMIC=0" ,
21
20
" ASAN_TEST_TARGET_ARCH=$crt_current_target_arch " ,
22
21
" COMPILER_RT_ARM_THUMB=" ,
23
22
" COMPILER_RT_BINARY_DIR=" + rebase_path (" $root_gen_dir /compiler-rt" ),
24
23
" LIT_SITE_CFG_IN_HEADER=## Autogenerated from $input , do not edit" ,
25
24
]
25
+ if (host_os == " mac" ) {
26
+ values += [ " ASAN_TEST_DYNAMIC=1" ]
27
+ } else {
28
+ values += [ " ASAN_TEST_DYNAMIC=0" ]
29
+ }
26
30
}
27
31
28
32
if (current_toolchain != host_toolchain ) {
@@ -34,18 +38,23 @@ if (current_toolchain != host_toolchain) {
34
38
" //compiler-rt/lib/asan:ignorelist($host_toolchain )" ,
35
39
" //compiler-rt/lib/profile" ,
36
40
" //compiler-rt/test:lit_common_configured" ,
41
+ " //llvm/tools/llvm-nm($host_toolchain )" ,
42
+ " //llvm/tools/llvm-objdump($host_toolchain )" ,
37
43
" //llvm/tools/llvm-readobj($host_toolchain )" ,
44
+ " //llvm/tools/llvm-size($host_toolchain )" ,
38
45
" //llvm/tools/llvm-symbolizer($host_toolchain )" ,
46
+ " //llvm/tools/sancov($host_toolchain )" ,
39
47
" //llvm/utils/FileCheck($host_toolchain )" ,
40
48
" //llvm/utils/count($host_toolchain )" ,
41
49
" //llvm/utils/llvm-lit($host_toolchain )" ,
42
50
" //llvm/utils/not($host_toolchain )" ,
51
+ " //llvm/utils/split-file($host_toolchain )" ,
43
52
]
44
53
}
45
54
}
46
55
47
56
supported_toolchains = []
48
- if (host_os == " linux" ) {
57
+ if (host_os == " linux" || host_os == " mac " ) {
49
58
supported_toolchains += [ " //llvm/utils/gn/build/toolchain:stage2_unix" ]
50
59
} else if (host_os == " win" ) {
51
60
supported_toolchains += [ " //llvm/utils/gn/build/toolchain:stage2_win_x64" ]
0 commit comments