File tree Expand file tree Collapse file tree 6 files changed +21
-12
lines changed Expand file tree Collapse file tree 6 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ jobs:
24
24
nix flake show --json \
25
25
| jq -r '.packages."x86_64-linux" | keys[]' \
26
26
| sed 's/^/.#/' \
27
- | xargs nix build
27
+ | xargs nix build --print-build-logs
28
28
29
29
build-test :
30
30
runs-on : 16-core-ubuntu
31
31
strategy :
32
32
matrix :
33
- llvm_version : [16]
33
+ llvm_version : [16, 17 ]
34
34
steps :
35
35
36
36
- uses : cachix/install-nix-action@v27
Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ find_package(LLVM ${LLVM_REQUESTED_VERSION} REQUIRED CONFIG)
224
224
message (STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} " )
225
225
message (STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR} " )
226
226
227
- if ((${LLVM_VERSION_MAJOR} VERSION_LESS 16) OR (${LLVM_VERSION_MAJOR} VERSION_GREATER 16 ))
228
- message (SEND_ERROR "Object Introspection currently requires LLVM version 16 !" )
227
+ if ((${LLVM_VERSION_MAJOR} VERSION_LESS 16) OR (${LLVM_VERSION_MAJOR} VERSION_GREATER 17 ))
228
+ message (SEND_ERROR "Object Introspection currently requires an LLVM version between 16 and 17 !" )
229
229
endif ()
230
230
231
231
find_package (Clang REQUIRED CONFIG)
@@ -336,7 +336,7 @@ target_include_directories(oicore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
336
336
337
337
llvm_map_components_to_libnames(llvm_libs core native mcjit x86disassembler)
338
338
target_link_libraries (oicore
339
- codegen
339
+ oicodegen
340
340
341
341
${Boost_LIBRARIES}
342
342
Boost::headers
Original file line number Diff line number Diff line change 116
116
default = self . packages . ${ system } . "oid-llvm${ toString defaultLlvmVersion } " ;
117
117
118
118
oid-llvm16 = mkOidPackage 16 ;
119
+ oid-llvm17 = mkOidPackage 17 ;
119
120
} ;
120
121
devShells = rec {
121
122
default = self . devShells . ${ system } . "oid-llvm${ toString defaultLlvmVersion } " ;
122
123
123
124
oid-llvm16 = mkOidDevShell 16 ;
125
+ oid-llvm17 = mkOidDevShell 17 ;
124
126
} ;
125
127
126
128
apps . default = {
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ target_link_libraries(container_info
39
39
toml
40
40
)
41
41
42
- add_library (codegen
42
+ add_library (oicodegen
43
43
CodeGen.cpp
44
44
FuncGen.cpp
45
45
OICodeGen.cpp
46
46
)
47
- target_link_libraries (codegen
47
+ target_link_libraries (oicodegen
48
48
container_info
49
49
resources
50
50
symbol_service
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ target_compile_definitions(test_type_graph PRIVATE
60
60
TARGET_EXE_PATH="${CMAKE_CURRENT_BINARY_DIR} /integration/integration_test_target"
61
61
)
62
62
target_link_libraries (test_type_graph
63
- codegen
63
+ oicodegen
64
64
container_info
65
65
type_graph
66
66
@@ -79,7 +79,7 @@ target_compile_definitions(test_clang_type_parser PRIVATE
79
79
BUILD_DIR="${CMAKE_BINARY_DIR} "
80
80
)
81
81
target_link_libraries (test_clang_type_parser
82
- codegen
82
+ oicodegen
83
83
container_info
84
84
type_graph
85
85
@@ -132,7 +132,7 @@ if (WITH_FLAKY_TESTS)
132
132
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
133
133
)
134
134
set_tests_properties (integration_py PROPERTIES
135
- TIMEOUT 90
135
+ TIMEOUT 120
136
136
ENVIRONMENT "OID=$<TARGET_FILE:oid>"
137
137
)
138
138
endif ()
Original file line number Diff line number Diff line change @@ -94,8 +94,15 @@ if (${THRIFT_FOUND})
94
94
target_link_libraries (integration_test_target PRIVATE glog::glog)
95
95
endif ()
96
96
97
+ # Set timeout to 300 for LLVM 17 due to performance regression
98
+ if (${LLVM_VERSION_MAJOR} EQUAL 17)
99
+ set (INTEGRATION_TEST_TIMEOUT 300)
100
+ else ()
101
+ set (INTEGRATION_TEST_TIMEOUT 90)
102
+ endif ()
103
+
97
104
if (DEFINED ENV{CI})
98
- gtest_discover_tests(integration_test_runner EXTRA_ARGS "--verbose" "--preserve-on-failure" )
105
+ gtest_discover_tests(integration_test_runner EXTRA_ARGS "--verbose" "--preserve-on-failure" "--output-on-failure" PROPERTIES TIMEOUT ${INTEGRATION_TEST_TIMEOUT} )
99
106
else ()
100
- gtest_discover_tests(integration_test_runner)
107
+ gtest_discover_tests(integration_test_runner PROPERTIES TIMEOUT ${INTEGRATION_TEST_TIMEOUT} )
101
108
endif ()
You can’t perform that action at this time.
0 commit comments