[PATCH] D113557: [CMake] Allow passing extra options to extract_symbols.py.
Simon Tatham via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 06:02:22 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG00ff774fca78: [CMake] Allow passing extra options to extract_symbols.py. (authored by simon_tatham).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113557/new/
https://reviews.llvm.org/D113557
Files:
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -1174,7 +1174,7 @@
set(mangling itanium)
endif()
add_custom_command(OUTPUT ${exported_symbol_file}
- COMMAND "${Python3_EXECUTABLE}" ${LLVM_MAIN_SRC_DIR}/utils/extract_symbols.py --mangling=${mangling} ${static_libs} -o ${exported_symbol_file}
+ COMMAND "${Python3_EXECUTABLE}" ${LLVM_MAIN_SRC_DIR}/utils/extract_symbols.py ${LLVM_EXTRACT_SYMBOLS_FLAGS} --mangling=${mangling} ${static_libs} -o ${exported_symbol_file}
WORKING_DIRECTORY ${LLVM_LIBRARY_OUTPUT_INTDIR}
DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/extract_symbols.py ${static_libs}
VERBATIM
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -984,6 +984,11 @@
# use export_executable_symbols(target).
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
+set(LLVM_EXTRACT_SYMBOLS_FLAGS ""
+ CACHE STRING "Additional options to pass to llvm/utils/extract_symbols.py.
+ These cannot override the options set by cmake, but can add extra options
+ such as --tools.")
+
include(AddLLVM)
include(TableGen)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113557.387233.patch
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211115/7ac88d24/attachment.bin>
More information about the llvm-commits
mailing list