aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Lavratti <felipelav@gmail.com>2022-09-21 00:50:34 +0100
committerFelipe Lavratti <felipelav@gmail.com>2022-09-21 00:50:34 +0100
commit5e9ff85fa89bbc3763cdbdb2fac17e8430852b46 (patch)
treeeee4c94c76e3be20e2a41240d7111f9ded531856
parenteb7a9c55b03efe0245eb4ccd1abd552edc99224d (diff)
Changed nightly build for linux to include the llvm library file
-rw-r--r--.github/workflows/nightly.yml1
-rw-r--r--.gitignore1
-rwxr-xr-xbuild_odin.sh3
3 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 3c4185830..f84f14f76 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -50,6 +50,7 @@ jobs:
run: |
mkdir dist
cp odin dist
+ cp libLLVM*.so dist
cp -r shared dist
cp -r core dist
cp -r vendor dist
diff --git a/.gitignore b/.gitignore
index 7df38525b..deccccbbd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -271,6 +271,7 @@ odin
odin.dSYM
*.bin
demo.bin
+libLLVM*.so
# shared collection
shared/
diff --git a/build_odin.sh b/build_odin.sh
index 62d8a0f59..b7462106b 100755
--- a/build_odin.sh
+++ b/build_odin.sh
@@ -99,7 +99,8 @@ config_linux() {
LDFLAGS="$LDFLAGS -ldl"
CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)"
- LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)"
+ LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs --libfiles) -Wl,-rpath=\$ORIGIN"
+ cp $($LLVM_CONFIG --libfiles) ./
}
build_odin() {