Skip to content

Commit 9c5ec2c

Browse files
committed
nix/ci: add and enable llvm-17
1 parent 575b2e8 commit 9c5ec2c

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
nix flake show --json \
2525
| jq -r '.packages."x86_64-linux" | keys[]' \
2626
| sed 's/^/.#/' \
27-
| xargs nix build
27+
| xargs nix build --print-build-logs
2828
2929
build-test:
3030
runs-on: 16-core-ubuntu
3131
strategy:
3232
matrix:
33-
llvm_version: [16]
33+
llvm_version: [16, 17]
3434
steps:
3535
- uses: actions/[email protected]
3636
- uses: cachix/install-nix-action@v27

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ find_package(LLVM ${LLVM_REQUESTED_VERSION} REQUIRED CONFIG)
224224
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
225225
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
226226

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!")
229229
endif()
230230

231231
find_package(Clang REQUIRED CONFIG)
@@ -336,7 +336,7 @@ target_include_directories(oicore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
336336

337337
llvm_map_components_to_libnames(llvm_libs core native mcjit x86disassembler)
338338
target_link_libraries(oicore
339-
codegen
339+
oicodegen
340340

341341
${Boost_LIBRARIES}
342342
Boost::headers

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@
116116
default = self.packages.${system}."oid-llvm${toString defaultLlvmVersion}";
117117

118118
oid-llvm16 = mkOidPackage 16;
119+
oid-llvm17 = mkOidPackage 17;
119120
};
120121
devShells = rec {
121122
default = self.devShells.${system}."oid-llvm${toString defaultLlvmVersion}";
122123

123124
oid-llvm16 = mkOidDevShell 16;
125+
oid-llvm17 = mkOidDevShell 17;
124126
};
125127

126128
apps.default = {

oi/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ target_link_libraries(container_info
3939
toml
4040
)
4141

42-
add_library(codegen
42+
add_library(oicodegen
4343
CodeGen.cpp
4444
FuncGen.cpp
4545
OICodeGen.cpp
4646
)
47-
target_link_libraries(codegen
47+
target_link_libraries(oicodegen
4848
container_info
4949
resources
5050
symbol_service

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ target_compile_definitions(test_type_graph PRIVATE
6060
TARGET_EXE_PATH="${CMAKE_CURRENT_BINARY_DIR}/integration/integration_test_target"
6161
)
6262
target_link_libraries(test_type_graph
63-
codegen
63+
oicodegen
6464
container_info
6565
type_graph
6666

@@ -79,7 +79,7 @@ target_compile_definitions(test_clang_type_parser PRIVATE
7979
BUILD_DIR="${CMAKE_BINARY_DIR}"
8080
)
8181
target_link_libraries(test_clang_type_parser
82-
codegen
82+
oicodegen
8383
container_info
8484
type_graph
8585

0 commit comments

Comments
 (0)