vcxproj: ignore -fno-stack-protector and -fno-common

An upcoming commit will introduce those compile options; MSVC does not
understand them, so let's suppress them when generating the Visual
Studio project files.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2021-04-07 21:57:31 +02:00
committed by Matthew Cheetham
parent 8e640be934
commit 4e5316ee4d

View File

@@ -263,7 +263,7 @@ sub handleCompileLine
if ("$part" eq "-o") {
# ignore object file
shift @parts;
} elsif ("$part" eq "-c" || "$part" eq "-i") {
} elsif ("$part" eq "-c" || "$part" eq "-i" || "$part" =~ /^-fno-/) {
# ignore compile flag
} elsif ($part =~ /^.?-I/) {
push(@incpaths, $part);