Skip to content

Commit

Permalink
Merge pull request #266 from mithro/or-fp-contract
Browse files Browse the repository at this point in the history
Adding `-ffp-contract=off` flag.
  • Loading branch information
mithro authored Jan 11, 2024
2 parents 55bfd50 + b8dfdac commit f760335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# limitations under the License.

build --cxxopt "-std=c++17"
build --cxxopt "-ffp-contract=off"
build --host_cxxopt "-std=c++17"
build --host_cxxopt "-ffp-contract=off"
build --crosstool_top=@llvm_toolchain//:toolchain

build:ciremotebuild --crosstool_top=@llvm_toolchain//:toolchain
Expand Down
1 change: 1 addition & 0 deletions dependency_support/org_theopenroadproject/build_helper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ OPENROAD_BINARY_SRCS = OPENROAD_BINARY_SRCS_WITHOUT_MAIN + [

OPENROAD_COPTS = [
"-fexceptions",
"-ffp-contract=off", # Needed for floating point stability.
"-Wno-error",
"-Wall",
"-Wextra",
Expand Down

0 comments on commit f760335

Please sign in to comment.