mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-31 02:17:14 -05:00
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:
committed by
Johannes Schindelin
parent
8f5ad65c77
commit
3e47c796eb
@@ -122,6 +122,8 @@ while (@ARGV) {
|
|||||||
push(@cflags, "-wd4996");
|
push(@cflags, "-wd4996");
|
||||||
} elsif ("$arg" =~ /^-W[a-z]/) {
|
} elsif ("$arg" =~ /^-W[a-z]/) {
|
||||||
# let's ignore those
|
# let's ignore those
|
||||||
|
} elsif ("$arg" eq "-fno-stack-protector") {
|
||||||
|
# eat this
|
||||||
} else {
|
} else {
|
||||||
push(@args, $arg);
|
push(@args, $arg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user