[clang] [lldb] [llvm] [cmake] Build executables with -no_exported_symbols when building Apple toolchain (PR #87684)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 4 15:00:16 PDT 2024


================
@@ -654,6 +654,11 @@ enabled sub-projects. Nearly all of these variable names begin with
   Generate dSYM files and strip executables and libraries (Darwin Only).
   Defaults to OFF.
 
+**LLVM_ENABLE_EXPORTED_SYMBOLS**:BOOL
+  When building executables, preserve symbol exports. Defaults to ON. 
+  You can use this option to disable exported symbols on all executable build
----------------
cyndyishida wrote:

That's what I initially thought as well but a lot of the LLVM_INCLUDE* variables on the lines below follow a "You can use this option..." And they also have similar behavior which defaults to ON. 

https://github.com/llvm/llvm-project/pull/87684


More information about the cfe-commits mailing list