Skip to content

Commit

Permalink
clink.pl: ignore no-stack-protector arg on MSVC=1 builds
Browse files Browse the repository at this point in the history
Ignore the `-fno-stack-protector` compiler argument when building
with MSVC.  This will be used in a later commit that needs to build
a Win32 GUI app.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler authored and dscho committed Sep 24, 2024
1 parent 3f1f131 commit 3a12e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/vcbuild/scripts/clink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
push(@cflags, "-wd4996");
} elsif ("$arg" =~ /^-W[a-z]/) {
# let's ignore those
} elsif ("$arg" eq "-fno-stack-protector") {
# eat this
} else {
push(@args, $arg);
}
Expand Down

0 comments on commit 3a12e6d

Please sign in to comment.