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 26, 2024
1 parent 455cd80 commit 2f1c159
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 2f1c159

Please sign in to comment.