Skip to content

Commit c981b04

Browse files
committed
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 <[email protected]>
1 parent 1297721 commit c981b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/buildsystems/engine.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ sub handleCompileLine
263263
if ("$part" eq "-o") {
264264
# ignore object file
265265
shift @parts;
266-
} elsif ("$part" eq "-c" || "$part" eq "-i") {
266+
} elsif ("$part" eq "-c" || "$part" eq "-i" || "$part" =~ /^-fno-/) {
267267
# ignore compile flag
268268
} elsif ($part =~ /^.?-I/) {
269269
push(@incpaths, $part);

0 commit comments

Comments
 (0)