Skip to content

Commit 3d1636f

Browse files
committed
Compile oldnames as bitcode file
1 parent 5b1e1f8 commit 3d1636f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

sulong/mx.sulong/suite.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -867,11 +867,10 @@
867867
"max_jobs" : "8",
868868
"vpath" : True,
869869
"ninja_targets" : [
870-
"<staticlib:oldnames>",
870+
"oldnames",
871871
],
872-
"ninja_install_targets" : ["install"],
873872
"results" : [
874-
"bin/<staticlib:oldnames>",
873+
"<staticlib:oldnames>",
875874
],
876875
"buildDependencies" : [
877876
"WINDOWS_SUPPORT",
@@ -1208,7 +1207,7 @@
12081207
"com.oracle.truffle.llvm.tests.libc.native" : {
12091208
"subDir" : "tests",
12101209
"class" : "SulongCMakeTestSuite",
1211-
"variants" : ["executable-O0", "toolchain-plain"],
1210+
"variants" : ["toolchain-plain"],
12121211
"cmakeConfig" : {
12131212
"TOOLCHAIN_CLANG" : "<toolchainGetToolPath:native,CC>",
12141213
"TOOLCHAIN_CLANGXX" : "<toolchainGetToolPath:native,CXX>",
@@ -1709,7 +1708,7 @@
17091708
"dependency:com.oracle.truffle.llvm.libraries.bitcode.libcxx/native/bin/*",
17101709
"dependency:com.oracle.truffle.llvm.libraries.bitcode.libcxx/native/lib/*",
17111710
"dependency:com.oracle.truffle.llvm.libraries.native/bin/*",
1712-
"dependency:com.oracle.truffle.llvm.libraries.oldnames/bin/<staticlib:oldnames>",
1711+
"dependency:com.oracle.truffle.llvm.libraries.oldnames/<staticlib:oldnames>",
17131712
"dependency:com.oracle.truffle.llvm.libraries.graalvm.llvm.libs/bin/*",
17141713
],
17151714
},

sulong/projects/com.oracle.truffle.llvm.libraries.oldnames/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ project(com.oracle.truffle.llvm.libraries.oldnames)
3333

3434
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
3535

36-
add_library(oldnames STATIC src/oldnames.c)
37-
install(TARGETS oldnames DESTINATION bin)
36+
add_custom_command(OUTPUT oldnames.lib COMMAND ${CMAKE_C_COMPILER} -o oldnames.lib -c ${CMAKE_CURRENT_SOURCE_DIR}/src/oldnames.c DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/oldnames.c)
37+
add_custom_target(oldnames DEPENDS oldnames.lib)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
c\stdlib\stat.c.dir
2+
libc\file-operations\access.c.dir

0 commit comments

Comments
 (0)