Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 315e110

Browse files
committed
Add conditional pinning
1 parent cc5b868 commit 315e110

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

meson.build

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,22 @@ PROJECT_PATH = meson.source_root()
1111

1212
cxx = meson.get_compiler('cpp')
1313

14+
r = run_command('uname', '-o', check: true)
15+
operation_system = r.stdout().strip()
16+
17+
# note: probably not a good approach but we should have both
18+
# OS with the same pinning soon
19+
20+
if 'Linux' in operation_system
21+
llvm_version = '>=15.0.0'
22+
else
23+
# osx
24+
llvm_version = '>=14.0.0'
25+
endif
26+
1427
deps = [
1528
dependency('arrow'),
16-
dependency('llvm', version : '>=14.0.0'),
29+
dependency('llvm', version : llvm_version),
1730
dependency('CLI11'),
1831
dependency('threads'),
1932
dependency('glog'),

0 commit comments

Comments
 (0)