@@ -50,32 +50,31 @@ set(LIBC_NAMESPACE ${default_namespace}
50
50
CACHE STRING "The namespace to use to enclose internal implementations. Must start with '__llvm_libc'."
51
51
)
52
52
53
- option (LIBC_USE_NEW_HEADER_GEN "Generate header files using new headergen instead of the old one" ON )
54
53
55
- if (LIBC_USE_NEW_HEADER_GEN )
56
- add_subdirectory (newhdrgen )
57
- else ()
58
- if (LLVM_LIBC_FULL_BUILD OR LLVM_LIBC_GPU_BUILD )
59
- if (NOT LIBC_HDRGEN_EXE )
60
- # We need to set up hdrgen first since other targets depend on it.
61
- add_subdirectory (utils/LibcTableGenUtil )
62
- add_subdirectory (utils/HdrGen )
63
- # Calling add_tablegen sets variables like LIBC_TABLEGEN_EXE in
64
- # PARENT_SCOPE which get lost until saved in the cache.
65
- set (LIBC_TABLEGEN_EXE "${LIBC_TABLEGEN_EXE} " CACHE INTERNAL "" )
66
- set (LIBC_TABLEGEN_TARGET "${LIBC_TABLEGEN_TARGET} " CACHE INTERNAL "" )
67
- else ()
68
- message (STATUS "Will use ${LIBC_HDRGEN_EXE} for libc header generation." )
69
- endif ()
54
+ add_subdirectory (newhdrgen )
55
+
56
+
57
+ if (LLVM_LIBC_FULL_BUILD OR LLVM_LIBC_GPU_BUILD )
58
+ if (NOT LIBC_HDRGEN_EXE )
59
+ # We need to set up hdrgen first since other targets depend on it.
60
+ add_subdirectory (utils/LibcTableGenUtil )
61
+ add_subdirectory (utils/HdrGen )
62
+ # Calling add_tablegen sets variables like LIBC_TABLEGEN_EXE in
63
+ # PARENT_SCOPE which get lost until saved in the cache.
64
+ set (LIBC_TABLEGEN_EXE "${LIBC_TABLEGEN_EXE} " CACHE INTERNAL "" )
65
+ set (LIBC_TABLEGEN_TARGET "${LIBC_TABLEGEN_TARGET} " CACHE INTERNAL "" )
66
+ else ()
67
+ message (STATUS "Will use ${LIBC_HDRGEN_EXE} for libc header generation." )
70
68
endif ()
71
69
endif ()
72
-
73
70
# We will build the GPU utilities if we are not doing a runtimes build.
74
71
option (LIBC_BUILD_GPU_LOADER "Always build the GPU loader utilities" OFF )
75
72
if (LIBC_BUILD_GPU_LOADER OR (LLVM_LIBC_GPU_BUILD AND NOT LLVM_RUNTIMES_BUILD ))
76
73
add_subdirectory (utils/gpu )
77
74
endif ()
78
75
76
+ option (LIBC_USE_NEW_HEADER_GEN "Generate header files using new headergen instead of the old one" ON )
77
+
79
78
set (NEED_LIBC_HDRGEN FALSE )
80
79
if (NOT LLVM_RUNTIMES_BUILD )
81
80
if ("libc" IN_LIST LLVM_ENABLE_RUNTIMES )
0 commit comments