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 22, 2022
1 parent 8192ddf commit 1e122c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/vcbuild/scripts/clink.pl
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 1e122c3

Please sign in to comment.