Skip to content

Commit

Permalink
Don't use SSE2 instructions on Haiku.
Browse files Browse the repository at this point in the history
We still support older architectures, so we don't want this. Since the
env CXXFLAGS are appended to the one set in the cmake files, there is no
way to force this in the CMake project.
  • Loading branch information
pulkomandy committed Jun 17, 2014
1 parent 4d26e35 commit 9619b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/Scripts/webkitdirs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ sub generateBuildSystemFromCMakeProject
# Compiler options to keep floating point values consistent
# between 32-bit and 64-bit architectures.
determineArchitecture();
if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation()) {
if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation() && !isHaiku()) {
$ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || "");
}

Expand Down

0 comments on commit 9619b6b

Please sign in to comment.