Skip to content

Commit e9b311b

Browse files
authored
Merge pull request #10109 from The-OpenROAD-Project-staging/bzl-abc-stdlib
Resolve dbg linker problems due to asserts
2 parents 115f1e5 + 134b684 commit e9b311b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ build --cxxopt "-Wno-dangling" --host_cxxopt "-Wno-dangling"
6565
build --per_file_copt=.*external/.*@-w
6666
build --host_per_file_copt=.*external/.*@-w
6767

68+
# This avoid problems with building -c dbg which enables asserts.
69+
# Without this libstdc++ vs libc++ differences cause link errors.
70+
build --per_file_copt=.*external/abc.*@-stdlib=libc++
71+
build --host_per_file_copt=.*external/abc.*@-stdlib=libc++
72+
6873
##### Platform-specific configs (auto-selected) #############
6974
# --enable_platform_specific_config makes bazel automatically apply
7075
# build:macos on macOS, build:linux on Linux, etc.

0 commit comments

Comments
 (0)