From 0608fbff6cec96bd7a4bae8533170e3895112e16 Mon Sep 17 00:00:00 2001 From: Ariel Abreu Date: Mon, 27 Apr 2020 12:46:46 -0400 Subject: [PATCH] Add the option to disable DSYM generation for specific targets Primary motivation for this: JavaScriptCore. Generating the DSYM for that takes *forever* (but I still want to build the library) --- cmake/darling_exe.cmake | 4 ++-- cmake/darling_lib.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/darling_exe.cmake b/cmake/darling_exe.cmake index b0a87de7f..ba430cee4 100644 --- a/cmake/darling_exe.cmake +++ b/cmake/darling_exe.cmake @@ -26,8 +26,8 @@ FUNCTION(add_darling_executable exe) target_link_libraries(${exe} system) add_dependencies(${exe} csu) - if (NOT NO_DSYM) + if ((NOT NO_DSYM) AND (NOT ${${exe}_NO_DSYM})) dsym(${exe}) - endif (NOT NO_DSYM) + endif ((NOT NO_DSYM) AND (NOT ${${exe}_NO_DSYM})) ENDFUNCTION(add_darling_executable) diff --git a/cmake/darling_lib.cmake b/cmake/darling_lib.cmake index 415f50c72..a0ab7d35f 100644 --- a/cmake/darling_lib.cmake +++ b/cmake/darling_lib.cmake @@ -55,9 +55,9 @@ FUNCTION(add_darling_library name) use_ld64(${name}) - if (NOT NO_DSYM) + if ((NOT NO_DSYM) AND (NOT ${${name}_NO_DSYM})) dsym(${name}) - endif (NOT NO_DSYM) + endif ((NOT NO_DSYM) AND (NOT ${${name}_NO_DSYM})) ENDFUNCTION(add_darling_library) FUNCTION(make_fat) -- 2.51.2