clink.pl: ignore no-stack-protector arg on MSVC=1 builds

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>
This commit is contained in:
Jeff Hostetler 2021-04-05 14:24:52 -04:00 committed by Johannes Schindelin
parent fd494061ec
commit 8855918b53

View File

@ -122,6 +122,8 @@ while (@ARGV) {
push(@cflags, "-wd4996");
} elsif ("$arg" =~ /^-W[a-z]/) {
# let's ignore those
} elsif ("$arg" eq "-fno-stack-protector") {
# eat this
} else {
push(@args, $arg);
}