summaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-20 22:12:23 +0200
committerHampusM <hampus@hampusmat.com>2026-05-20 22:12:23 +0200
commit568883f987415fe989271d61a1309548d6013877 (patch)
tree1b61acc51969b237001f1199ce0e41879dec1e0f /.cargo
parent88281a99598cb1affeb5361c253781bacd490b5b (diff)
build(engine): use shader-slang fork branch with prebuilt libs
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..c82825c
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,9 @@
+[env]
+SLANG_USE_PREBUILT = "1"
+
+# This makes unix-like operating systems behave like Windows in that it will search for
+# dynamic libraries in the same directory as the executable. This is needed by the engine
+# crate to be able to load the shader-slang dynamic libraries.
+[target.'cfg(unix)']
+rustflags = ["-Clink-arg=-Wl,-rpath,$ORIGIN"]
+