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 24, 2024
1 parent e7b1310 commit 1f8310d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/buildsystems/engine.pl
Original file line number Diff line number Diff line change
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 1f8310d

Please sign in to comment.