Skip to content

Commit f32e509

Browse files
committed
Rename the sulong mx substitution to sulong_prefix to avoid potential name clashes
1 parent 6a04ea7 commit f32e509

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: sulong/mx.sulong/mx_sulong.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ def _lib_versioned(arg):
9494

9595
mx_subst.results_substitutions.register_with_arg('libv', _lib_versioned)
9696

97-
def prefix_path(name):
97+
def sulong_prefix_path(name):
9898
# name is a CMakeNinjaProject with `symlinkSource: True`
9999
# return the path to the build directory, that also includes the sources
100100
p = mx.project(name)
101101
return p.out_dir
102102

103-
mx_subst.results_substitutions.register_with_arg('prefix', prefix_path)
103+
mx_subst.results_substitutions.register_with_arg('sulong_prefix', sulong_prefix_path)
104104

105105
def testLLVMImage(image, imageArgs=None, testFilter=None, libPath=True, test=None, unittestArgs=None):
106106
mx_sulong_gate.testLLVMImage(image, imageArgs, testFilter, libPath, test, unittestArgs)

Diff for: sulong/mx.sulong/suite.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,9 @@
966966
"cmakeConfig" : {
967967
"CMAKE_INSTALL_RPATH" : "\\$ORIGIN",
968968
"LLVM_ENABLE_RUNTIMES" : "libcxx;libcxxabi;libunwind",
969-
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
970-
"CMAKE_C_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
971-
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
969+
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
970+
"CMAKE_C_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
971+
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
972972
},
973973
},
974974
"linux-musl" : {
@@ -979,9 +979,9 @@
979979
"CMAKE_INSTALL_RPATH" : "\\$ORIGIN",
980980
"LLVM_ENABLE_RUNTIMES" : "libcxx;libcxxabi;libunwind",
981981
"LIBCXX_HAS_MUSL_LIBC" : "YES",
982-
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
983-
"CMAKE_C_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
984-
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
982+
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
983+
"CMAKE_C_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
984+
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
985985
},
986986
},
987987
"darwin" : {
@@ -992,9 +992,9 @@
992992
"CMAKE_INSTALL_RPATH" : "@loader_path/",
993993
"LLVM_ENABLE_RUNTIMES" : "libcxx;libcxxabi;libunwind",
994994
"CMAKE_LIBTOOL" : "<path:LLVM_TOOLCHAIN>/bin/llvm-libtool-darwin",
995-
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
996-
"CMAKE_C_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
997-
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
995+
"CMAKE_ASM_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
996+
"CMAKE_C_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
997+
"CMAKE_CXX_FLAGS": "-ffile-prefix-map=<sulong_prefix:com.oracle.truffle.llvm.libraries.bitcode.libcxx>=llvm-project",
998998
},
999999
},
10001000
"windows" : {

0 commit comments

Comments
 (0)