Skip to content

Commit

Permalink
pw_toolchain: Support replacing GNU libs for ARM
Browse files Browse the repository at this point in the history
Toolchain BareMetal Driver behavior had changed. Explicitly pass the
`-unwindlib=none` flag to avoid `-lunwind` from being set by the Driver.

Bug: b/322360978
Change-Id: I5e3de39952098b28f618a63f51b6a555e8e545e9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/256012
Docs-Not-Needed: Prabhu Karthikeyan Rajasekaran <[email protected]>
Reviewed-by: Leonard Chan <[email protected]>
Lint: Lint 🤖 <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Commit-Queue: Prabhu Karthikeyan Rajasekaran <[email protected]>
  • Loading branch information
Prabhuk authored and CQ Bot Account committed Dec 26, 2024
1 parent 46f4dc7 commit 6492053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pw_toolchain/arm_clang/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if (pw_toolchain_USE_LLVM_PREBUILT_LIBRARIES) {
cortex_m_common_link_flags = [
"-nostartfiles",
"-nostdlib++",
"-unwindlib=none",
]
cortex_m_common_defines = [
# This macro is used by libc++ headers and normally would expand to std::_libcpp_verbose_abort,
Expand Down

0 comments on commit 6492053

Please sign in to comment.