make libmf multithreading work

This commit is contained in:
Dylan Knutson
2024-12-28 04:19:00 +00:00
parent 2738b8469b
commit 9aece9c740
2 changed files with 28 additions and 3 deletions

View File

@@ -1,2 +1,17 @@
[build]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-unknown-linux-gnu]
rustflags = [
"-C",
"link-arg=-fuse-ld=lld",
"-C",
"link-arg=-L/usr/lib/x86_64-linux-gnu",
"-C",
"link-arg=-lgomp",
"-C",
"link-arg=-fopenmp",
]
[env]
CXXFLAGS = "-fopenmp -pthread -DUSEOMP=1"
LDFLAGS = "-fopenmp -pthread -DUSEOMP=1"
CC = "gcc"
CXX = "g++"