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

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 5 11:03:01 PDT 2024


================
@@ -673,6 +673,9 @@ option(LLVM_USE_OPROFILE
 option(LLVM_EXTERNALIZE_DEBUGINFO
   "Generate dSYM files and strip executables and libraries (Darwin Only)" OFF)
 
+option(LLVM_ENABLE_EXPORTED_SYMBOLS
----------------
delcypher wrote:

> "tools" has a pretty specific meaning for LLVM so I think that will actually cause more confusion (i.e. I would expect that option to apply to llvm-dwarfdump, but not to clang). I'm personally fine with the current concise name.

I'm not exactly sure what that "specific meaning" is but I'm happy to go with something else. I think using the name "EXECUTABLE" as @cyndyishida is suggesting is consistent with the option being used in `add_llvm_executable()`.

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


More information about the cfe-commits mailing list