mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 11:13:57 +00:00
make dragonbox opt-in via -d:nimFpRoundtrips (#18504)
* make dragonbox opt-in via -d:nimFpRoundtrips * make tests green again * make tests green again
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
when not defined(nimLegacyAddFloat) and not defined(nimscript) and
|
||||
when defined(nimFpRoundtrips) and not defined(nimscript) and
|
||||
not defined(js) and defined(nimHasDragonBox):
|
||||
import dragonbox
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ proc nimFloatToStr(f: float): string {.compilerproc.} =
|
||||
result = newStringOfCap(8)
|
||||
result.addFloat f
|
||||
|
||||
when not defined(nimLegacyAddFloat) and not defined(nimscript) and
|
||||
when defined(nimFpRoundtrips) and not defined(nimscript) and
|
||||
not defined(js) and defined(nimHasDragonBox):
|
||||
import schubfach
|
||||
|
||||
|
||||
Reference in New Issue
Block a user