Skip to content

Commit

Permalink
Switch platform arch i686 to use -march=pentium4
Browse files Browse the repository at this point in the history
Before, we used -march=i686, but that does not include MMX, SSE, SSE2 support,
which Julia requires. By switching to pentium4 as base level, better optimized
code can be generated, and also linking against libjulia then work for
32bit binaries without extra compiler flags.
  • Loading branch information
fingolfin committed Oct 26, 2020
1 parent 7307cd5 commit 0427e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const ARCHITECTURE_FLAGS = Dict(
# Many compiler flags are the same across clang and gcc, store those in "common"
"common" => Dict(
"i686" => Dict(
"i686" => ["-march=i686", "-mtune=generic"],
"i686" => ["-march=pentium4", "-mtune=generic"],
"prescott" => ["-march=prescott", "-mtune=prescott"],
),
"x86_64" => Dict(
Expand Down

0 comments on commit 0427e7b

Please sign in to comment.