Skip to content

Commit

Permalink
vcxproj: ignore -fno-stack-protector and -fno-common
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dscho committed Sep 16, 2022
1 parent 653ef80 commit 99f2e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/buildsystems/engine.pl
Expand Up @@ -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);
Expand Down

0 comments on commit 99f2e86

Please sign in to comment.