|
4 | 4 | include(AddCompilerRT)
|
5 | 5 | include(SanitizerUtils)
|
6 | 6 |
|
7 |
| -if(COMPILER_RT_HAS_INTERCEPTION) |
8 |
| - add_subdirectory(interception) |
9 |
| -endif() |
10 |
| - |
11 |
| -if(COMPILER_RT_HAS_SANITIZER_COMMON) |
12 |
| - add_subdirectory(sanitizer_common) |
13 |
| - add_subdirectory(cfi) |
14 |
| - add_subdirectory(lsan) |
15 |
| - add_subdirectory(ubsan) |
16 |
| -endif() |
17 |
| - |
18 |
| -if(COMPILER_RT_HAS_ASAN) |
19 |
| - add_subdirectory(asan) |
20 |
| -endif() |
21 |
| - |
22 |
| -add_subdirectory(builtins) |
23 |
| - |
24 |
| -if(COMPILER_RT_HAS_DFSAN) |
25 |
| - add_subdirectory(dfsan) |
26 |
| -endif() |
27 |
| - |
28 |
| -if(COMPILER_RT_HAS_MSAN) |
29 |
| - add_subdirectory(msan) |
30 |
| -endif() |
31 |
| - |
32 |
| -if(COMPILER_RT_HAS_PROFILE) |
33 |
| - add_subdirectory(profile) |
34 |
| -endif() |
35 |
| - |
36 |
| -if(COMPILER_RT_HAS_TSAN) |
37 |
| - add_subdirectory(tsan) |
38 |
| - add_subdirectory(tsan/dd) |
39 |
| -endif() |
40 |
| - |
41 |
| -if(COMPILER_RT_HAS_SAFESTACK) |
42 |
| - add_subdirectory(safestack) |
| 7 | +if(COMPILER_RT_BUILD_BUILTINS) |
| 8 | + add_subdirectory(builtins) |
| 9 | +endif() |
| 10 | + |
| 11 | +if(COMPILER_RT_BUILD_SANITIZERS) |
| 12 | + if(COMPILER_RT_HAS_INTERCEPTION) |
| 13 | + add_subdirectory(interception) |
| 14 | + endif() |
| 15 | + |
| 16 | + if(COMPILER_RT_HAS_SANITIZER_COMMON) |
| 17 | + add_subdirectory(sanitizer_common) |
| 18 | + add_subdirectory(cfi) |
| 19 | + add_subdirectory(lsan) |
| 20 | + add_subdirectory(ubsan) |
| 21 | + endif() |
| 22 | + |
| 23 | + if(COMPILER_RT_HAS_ASAN) |
| 24 | + add_subdirectory(asan) |
| 25 | + endif() |
| 26 | + |
| 27 | + if(COMPILER_RT_HAS_DFSAN) |
| 28 | + add_subdirectory(dfsan) |
| 29 | + endif() |
| 30 | + |
| 31 | + if(COMPILER_RT_HAS_MSAN) |
| 32 | + add_subdirectory(msan) |
| 33 | + endif() |
| 34 | + |
| 35 | + if(COMPILER_RT_HAS_PROFILE) |
| 36 | + add_subdirectory(profile) |
| 37 | + endif() |
| 38 | + |
| 39 | + if(COMPILER_RT_HAS_TSAN) |
| 40 | + add_subdirectory(tsan) |
| 41 | + add_subdirectory(tsan/dd) |
| 42 | + endif() |
| 43 | + |
| 44 | + if(COMPILER_RT_HAS_SAFESTACK) |
| 45 | + add_subdirectory(safestack) |
| 46 | + endif() |
43 | 47 | endif()
|
0 commit comments