Skip to content

Commit d02097d

Browse files
committed
Sync .cargo/config.toml
1 parent 7fc0651 commit d02097d

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

.cargo/config.toml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,45 @@
1-
# copied from https://github.com/srcwr/srcwrtimer/blob/main/.cargo/config.toml
2-
31
[build]
42
target-dir = "_build"
53

64
# FUCK YOU TO PEOPLE WITH OLD CPUS
7-
rustflags = ["-Ctarget-cpu=x86-64-v2"]
5+
#rustflags = ["-Ctarget-cpu=x86-64-v2"]
86

9-
target = "x86_64-pc-windows-msvc"
7+
target = "i686-pc-windows-msvc"
108

119
[env]
10+
CFLAGS_i686_pc_windows_msvc = "/Zi /FS"
11+
CXXFLAGS_i686_pc_windows_msvc = "/Zi /FS"
1212
CFLAGS_x86_64_pc_windows_msvc = "/Zi /FS"
1313
CXXFLAGS_x86_64_pc_windows_msvc = "/Zi /FS"
1414

1515
SRCWRTIMER_ROOT_DIR = { value = "../srcwrtimer", relative = true }
1616

17+
18+
[target.i686-unknown-linux-gnu]
19+
rustflags = [
20+
# 2025... we can rely on CPUs to be using SSE2... not that it will likely change much in codegen...
21+
"-Ctarget-feature=+sse2",
22+
# Yeah, we want frame pointers...
23+
"-Cforce-frame-pointers=yes",
24+
]
25+
[target.i686-pc-windows-msvc]
26+
rustflags = [
27+
# 2025... we can rely on CPUs to be using SSE2... not that it will likely change much in codegen...
28+
"-Ctarget-feature=+sse2",
29+
# TODO: Do we want static crt on Windows? I can't remember if there was a reason for this...
30+
"-Ctarget-feature=+crt-static",
31+
# Yeah, we want frame pointers...
32+
"-Cforce-frame-pointers=yes",
33+
]
34+
35+
36+
[target.x86_64-unknown-linux-gnu]
37+
rustflags = [
38+
# FUCK YOU TO PEOPLE WITH OLD CPUS
39+
"-Ctarget-cpu=x86-64-v2",
40+
# Yeah, we want frame pointers...
41+
"-Cforce-frame-pointers=yes",
42+
]
1743
[target.x86_64-pc-windows-msvc]
1844
rustflags = [
1945
# FUCK YOU TO PEOPLE WITH OLD CPUS

0 commit comments

Comments
 (0)