AK+LibGfx: Only generate clang module map if ENABLE_SWIFT

The script pulls in a dependency on the `yaml` python package. Instead
of updating all the docs and CI jobs to account for this, let's guard
calling the script behind our experimental flag instead.
This commit is contained in:
Andrew Kaster
2024-08-07 00:33:55 -06:00
committed by Andreas Kling
parent 5a31fed1da
commit 7758875cfd
2 changed files with 10 additions and 7 deletions

View File

@@ -60,9 +60,11 @@ endif()
find_package(simdutf REQUIRED)
target_link_libraries(AK PRIVATE simdutf::simdutf)
generate_clang_module_map(
AK
GENERATED_FILES
"${CMAKE_CURRENT_BINARY_DIR}/Backtrace.h"
"${CMAKE_CURRENT_BINARY_DIR}/Debug.h"
)
if (ENABLE_SWIFT)
generate_clang_module_map(
AK
GENERATED_FILES
"${CMAKE_CURRENT_BINARY_DIR}/Backtrace.h"
"${CMAKE_CURRENT_BINARY_DIR}/Debug.h"
)
endif()