Skip to content

Commit

Permalink
Revert "[cortex-m] Allow double precision floating-point constants"
Browse files Browse the repository at this point in the history
This reverts commit 662d1c6.
  • Loading branch information
salkinium committed Apr 9, 2023
1 parent f9ab700 commit 7690fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modm/platform/core/cortex/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,5 @@ def build(env):
env.collect(":build:archflags", "-mfloat-abi={}".format(env["float-abi"]), fpu_spec)
single_precision = ("-sp-" in fpu_spec)
if single_precision:
env.collect(":build:ccflags", "-Wdouble-promotion")
env.collect(":build:ccflags", "-fsingle-precision-constant",
"-Wdouble-promotion")

0 comments on commit 7690fb6

Please sign in to comment.