[clang] a30ef38 - [clang-repl] Always do export_executable_symbols_for_plugins(clang-repl)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 09:44:18 PDT 2024


Author: Hans Wennborg
Date: 2024-06-10T18:43:58+02:00
New Revision: a30ef38cd455d500680fea8afdc824b4983fa981

URL: https://github.com/llvm/llvm-project/commit/a30ef38cd455d500680fea8afdc824b4983fa981
DIFF: https://github.com/llvm/llvm-project/commit/a30ef38cd455d500680fea8afdc824b4983fa981.diff

LOG: [clang-repl] Always do export_executable_symbols_for_plugins(clang-repl)

It's needed to make clang-repl work in -DCLANG_PLUGIN_SUPPORT=OFF
configured builds (at least on mac). See discussion on
https://github.com/llvm/llvm-project/pull/89811

Added: 
    

Modified: 
    clang/tools/clang-repl/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-repl/CMakeLists.txt b/clang/tools/clang-repl/CMakeLists.txt
index 4017b1445da0f..42618e4e31cb0 100644
--- a/clang/tools/clang-repl/CMakeLists.txt
+++ b/clang/tools/clang-repl/CMakeLists.txt
@@ -61,10 +61,7 @@ clang_target_link_libraries(clang-repl PRIVATE
   clangInterpreter
   )
 
-# Support plugins.
-if(CLANG_PLUGIN_SUPPORT)
-  export_executable_symbols_for_plugins(clang-repl)
-endif()
+export_executable_symbols_for_plugins(clang-repl)
 
 # The clang-repl binary can get huge with static linking in debug mode.
 # Some 32-bit targets use PLT slots with limited branch range by default and we


        


More information about the cfe-commits mailing list