Skip to content

Commit

Permalink
Keep stack guard pages on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 4, 2023
1 parent 9d5e621 commit 0dfe2e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions constantine.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ proc releaseBuildOptions(buildMode = bmBinary): string =
else: ""

let osSpecific =
# Remove the auto __chkstk, which are: 1. slower, 2. not supported on Rust "stable-gnu" channel.
if defined(windows): " --passC:-mno-stack-arg-probe "
if defined(windows): "" # " --passC:-mno-stack-arg-probe "
# Remove the auto __chkstk, which are: 1. slower, 2. not supported on Rust "stable-gnu" channel.
# However functions that uses a large stack like `sum_reduce_vartime` become incorrect.
# Hence deactivated by default.
else: ""

let threadLocalStorage = " --tlsEmulation=off "
Expand Down

0 comments on commit 0dfe2e4

Please sign in to comment.