Skip to content

Commit

Permalink
Fix link flags in Bazel build
Browse files Browse the repository at this point in the history
Critical flags were not being applied to link steps. This applies -mcpu
and -mthumb to the link steps to make the produced binaries work again.
  • Loading branch information
armandomontanez committed May 16, 2024
1 parent 22f48b1 commit ba3c006
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bazel/toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ load("@rules_cc//cc/toolchains:toolchain.bzl", "cc_toolchain")

cc_args(
name = "cortex-m0",
actions = ["@rules_cc//cc/toolchains/actions:compile_actions"],
actions = [
"@rules_cc//cc/toolchains/actions:compile_actions",
"@rules_cc//cc/toolchains/actions:link_actions",
],
args = [
"-mcpu=cortex-m0plus",
"-mthumb",
Expand Down

0 comments on commit ba3c006

Please sign in to comment.