@@ -31,40 +31,40 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -gline-tables-only -DNDEBUG" CACHE STRIN
31
31
if (APPLE )
32
32
list (APPEND BUILTIN_TARGETS "default" )
33
33
list (APPEND RUNTIME_TARGETS "default" )
34
- elseif (UNIX )
35
- foreach (target i386;x86_64;armhf;aarch64)
36
- if (LINUX_${target} _SYSROOT)
37
- # Set the per-target builtins options.
38
- list (APPEND BUILTIN_TARGETS "${target} -linux-gnu" )
39
- set (BUILTINS_${target} -linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "" )
40
- set (BUILTINS_${target} -linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "" )
41
- set (BUILTINS_${target} -linux-gnu_CMAKE_SYSROOT ${LINUX_${target} _SYSROOT} CACHE STRING "" )
42
-
43
- # Set the per-target runtimes options.
44
- list (APPEND RUNTIME_TARGETS "${target} -linux-gnu" )
45
- set (RUNTIMES_${target} -linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "" )
46
- set (RUNTIMES_${target} -linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "" )
47
- set (RUNTIMES_${target} -linux-gnu_CMAKE_SYSROOT ${LINUX_${target} _SYSROOT} CACHE STRING "" )
48
- set (RUNTIMES_${target} -linux-gnu_LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "" )
49
- set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "" )
50
- set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "" )
51
- set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "" )
52
- set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "" )
53
- set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "" )
54
- set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "" )
55
- set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_ENABLE_STATIC_UNWINDER ON CACHE BOOL "" )
56
- set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "" )
57
- set (RUNTIMES_${target} -linux-gnu_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
58
- set (RUNTIMES_${target} -linux-gnu_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
59
- set (RUNTIMES_${target} -linux-gnu_LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "" )
60
- set (RUNTIMES_${target} -linux-gnu_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
61
- set (RUNTIMES_${target} -linux-gnu_SANITIZER_CXX_ABI "libc++" CACHE STRING "" )
62
- set (RUNTIMES_${target} -linux-gnu_SANITIZER_CXX_ABI_INTREE ON CACHE BOOL "" )
63
- set (RUNTIMES_${target} -linux-gnu_COMPILER_RT_USE_BUILTINS_LIBRARY ON CACHE BOOL "" )
64
- endif ()
65
- endforeach ()
66
34
endif ()
67
35
36
+ foreach (target i386;x86_64;armhf;aarch64)
37
+ if (LINUX_${target} _SYSROOT)
38
+ # Set the per-target builtins options.
39
+ list (APPEND BUILTIN_TARGETS "${target} -linux-gnu" )
40
+ set (BUILTINS_${target} -linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "" )
41
+ set (BUILTINS_${target} -linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "" )
42
+ set (BUILTINS_${target} -linux-gnu_CMAKE_SYSROOT ${LINUX_${target} _SYSROOT} CACHE STRING "" )
43
+
44
+ # Set the per-target runtimes options.
45
+ list (APPEND RUNTIME_TARGETS "${target} -linux-gnu" )
46
+ set (RUNTIMES_${target} -linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "" )
47
+ set (RUNTIMES_${target} -linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "" )
48
+ set (RUNTIMES_${target} -linux-gnu_CMAKE_SYSROOT ${LINUX_${target} _SYSROOT} CACHE STRING "" )
49
+ set (RUNTIMES_${target} -linux-gnu_LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "" )
50
+ set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "" )
51
+ set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "" )
52
+ set (RUNTIMES_${target} -linux-gnu_LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "" )
53
+ set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "" )
54
+ set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "" )
55
+ set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "" )
56
+ set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_ENABLE_STATIC_UNWINDER ON CACHE BOOL "" )
57
+ set (RUNTIMES_${target} -linux-gnu_LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "" )
58
+ set (RUNTIMES_${target} -linux-gnu_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
59
+ set (RUNTIMES_${target} -linux-gnu_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
60
+ set (RUNTIMES_${target} -linux-gnu_LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "" )
61
+ set (RUNTIMES_${target} -linux-gnu_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
62
+ set (RUNTIMES_${target} -linux-gnu_SANITIZER_CXX_ABI "libc++" CACHE STRING "" )
63
+ set (RUNTIMES_${target} -linux-gnu_SANITIZER_CXX_ABI_INTREE ON CACHE BOOL "" )
64
+ set (RUNTIMES_${target} -linux-gnu_COMPILER_RT_USE_BUILTINS_LIBRARY ON CACHE BOOL "" )
65
+ endif ()
66
+ endforeach ()
67
+
68
68
if (FUCHSIA_SDK)
69
69
set (FUCHSIA_aarch64_NAME arm64)
70
70
set (FUCHSIA_x86_64_NAME x64)
0 commit comments