File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,13 @@ function(add_llvm_symbol_exports target_name export_file)
103
103
# FIXME: Don't write the "local:" line on OpenBSD.
104
104
# in the export file, also add a linker script to version LLVM symbols (form: LLVM_N.M)
105
105
add_custom_command (OUTPUT ${native_export_file}
106
- COMMAND "${Python3_EXECUTABLE} " ${LLVM_MAIN_SRC_DIR} /utils/add_llvm_symbol_exports.py ${LLVM_VERSION_MAJOR} ${export_file} ${native_export_file}
106
+ COMMAND "${Python3_EXECUTABLE} " "-c"
107
+ "import sys; \
108
+ lines = [' ' + l.rstrip() for l in sys.stdin] + [' local: *;']; \
109
+ print('LLVM_${LLVM_VERSION_MAJOR} {'); \
110
+ print(' global:') if len(lines) > 1 else None; \
111
+ print(';\\ n'.join(lines) + '\\ n};')"
112
+ < ${export_file} > ${native_export_file}
107
113
DEPENDS ${export_file}
108
114
VERBATIM
109
115
COMMENT "Creating export file for ${target_name} " )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments