Merge branch 'master' into curl-update
This commit is contained in:
commit
98f40658d6
@ -1352,7 +1352,7 @@
|
||||
|
||||
|
||||
function m.floatingPointModel(cfg)
|
||||
if cfg.floatingpoint then
|
||||
if cfg.floatingpoint and cfg.floatingpoint ~= "Default" then
|
||||
m.element("FloatingPointModel", nil, cfg.floatingpoint)
|
||||
end
|
||||
end
|
||||
|
@ -44,7 +44,9 @@
|
||||
clang.shared = {
|
||||
architecture = gcc.shared.architecture,
|
||||
flags = gcc.shared.flags,
|
||||
floatingpoint = gcc.shared.floatingpoint,
|
||||
floatingpoint = {
|
||||
Fast = "-ffast-math",
|
||||
},
|
||||
strictaliasing = gcc.shared.strictaliasing,
|
||||
optimize = {
|
||||
Off = "-O0",
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
function suite.floatingPoint_onFloatFast()
|
||||
flags "FloatFast"
|
||||
floatingpoint "fast"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<FloatingPointModel>Fast</FloatingPointModel>
|
||||
@ -38,12 +38,15 @@
|
||||
end
|
||||
|
||||
function suite.floatingPoint_onFloatStrict()
|
||||
flags "FloatStrict"
|
||||
floatingpoint "strict"
|
||||
prepare()
|
||||
test.capture [[
|
||||
<FloatingPointModel>Strict</FloatingPointModel>
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
|
||||
function suite.floatingPoint_onDefault()
|
||||
floatingpoint "Default"
|
||||
prepare()
|
||||
test.isemptycapture()
|
||||
end
|
||||
|
Reference in New Issue
Block a user