We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b01255 commit f37b8c6Copy full SHA for f37b8c6
build.sh
@@ -6,14 +6,14 @@ cd spectre_oxi
6
7
cargo build --release
8
9
+[ "$CARGO_TARGET_DIR" = "" ] && CARGO_TARGET_DIR=target
10
+
11
if [ "$(uname)" == "Darwin" ]; then
- cp target/release/libspectre_oxi.dylib ../lua/spectre_oxi.so
12
+ cp "$CARGO_TARGET_DIR"/release/libspectre_oxi.dylib ../lua/spectre_oxi.so
13
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
- cp target/release/libspectre_oxi.so ../lua/spectre_oxi.so
14
+ cp "$CARGO_TARGET_DIR"/release/libspectre_oxi.so ../lua/spectre_oxi.so
15
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
- cp target/release/libspectre_oxi.dll ../lua/spectre_oxi.dll
16
+ cp "$CARGO_TARGET_DIR"/release/libspectre_oxi.dll ../lua/spectre_oxi.dll
17
fi
18
rm -rf target
19
echo "Build Done"
-
0 commit comments