We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f439a8 commit 4e5cc19Copy full SHA for 4e5cc19
ci/run.sh
@@ -15,7 +15,12 @@ export RUSTFLAGS="${RUSTFLAGS} -D warnings -Z merge-functions=disabled "
15
export STDARCH_DISABLE_DEDUP_GUARD=1
16
17
case ${TARGET} in
18
+ # On Windows the linker performs identical COMDAT folding (ICF) by default
19
+ # in release mode which removes identical COMDAT sections. This interferes
20
+ # with our instruction assertions just like LLVM's MergeFunctions pass so
21
+ # we disable it.
22
*-pc-windows-msvc)
23
+ export RUSTFLAGS="${RUSTFLAGS} -Clink-args=/OPT:NOICF"
24
;;
25
# On 32-bit use a static relocation model which avoids some extra
26
# instructions when dealing with static data, notably allowing some
0 commit comments