config.toml (796B)
1 [env] 2 YARA_LIBRARY_PATH = { value = "build/yara/lib", relative = true } 3 YARA_INCLUDE_DIR = { value = "build/yara/include", relative = true } 4 5 [target.x86_64-unknown-linux-gnu] 6 linker = "clang" 7 rustflags = ["-Clink-arg=-fuse-ld=lld"] 8 9 [target.aarch64-unknown-linux-gnu] 10 linker = "clang" 11 rustflags = ["-Clink-arg=-fuse-ld=lld"] 12 13 # NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager: 14 # `brew install llvm` 15 [target.x86_64-apple-darwin] 16 rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld"] 17 18 [target.aarch64-apple-darwin] 19 rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld"] 20 21 [target.x86_64-pc-windows-msvc] 22 linker = "rust-lld.exe"