diff --git a/src/Runner.jl b/src/Runner.jl index bb483cd6..2244fc56 100644 --- a/src/Runner.jl +++ b/src/Runner.jl @@ -573,7 +573,7 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr function gcc_unsafe_flags!(p::AbstractPlatform, flags::Vector{String} = String[]) if !allow_unsafe_flags - return String["-Ofast", "-ffast-math", "-funsafe-math-optimizations"] + return String["-Ofast", "-ffast-math", "-funsafe-math-optimizations", "-fomit-frame-pointer"] end return String[] end diff --git a/test/runners.jl b/test/runners.jl index c67e7227..5ff2eee1 100644 --- a/test/runners.jl +++ b/test/runners.jl @@ -418,7 +418,7 @@ end @test !run(ur, cmd, iobuff; tee_stream=devnull) seekstart(iobuff) lines = readlines(iobuff) - @test lines[2] == "BinaryBuilder: You used one or more of the unsafe flags: -Ofast, -ffast-math, -funsafe-math-optimizations" + @test lines[2] == "BinaryBuilder: You used one or more of the unsafe flags: -Ofast, -ffast-math, -funsafe-math-optimizations, -fomit-frame-pointer" @test lines[3] == "Please repent." ur = preferred_runner()(dir; platform=platform, allow_unsafe_flags=true)