Skip to content

Commit

Permalink
add ARM Cortex M3 triple mappings (bazelbuild#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
driftregion authored and cfredric committed Feb 16, 2022
1 parent c16516b commit 6d789f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/platform/triple_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ _CPU_ARCH_TO_BUILTIN_PLAT_SUFFIX = {
"powerpc64le": None,
"s390": None,
"s390x": "s390x",
"thumbv7m": "armv7",
"wasm32": None,
"x86_64": "x86_64",
}
Expand All @@ -64,6 +65,7 @@ _SYSTEM_TO_BUILTIN_SYS_SUFFIX = {
"bitrig": None,
"darwin": "osx",
"dragonfly": None,
"eabi": "none",
"emscripten": None,
"freebsd": "freebsd",
"ios": "ios",
Expand All @@ -80,6 +82,7 @@ _SYSTEM_TO_BUILTIN_SYS_SUFFIX = {
_SYSTEM_TO_BINARY_EXT = {
"android": "",
"darwin": "",
"eabi": "",
"emscripten": ".js",
"freebsd": "",
"ios": "",
Expand All @@ -95,6 +98,7 @@ _SYSTEM_TO_BINARY_EXT = {
_SYSTEM_TO_STATICLIB_EXT = {
"android": ".a",
"darwin": ".a",
"eabi": ".a",
"emscripten": ".js",
"freebsd": ".a",
"ios": ".a",
Expand All @@ -107,6 +111,7 @@ _SYSTEM_TO_STATICLIB_EXT = {
_SYSTEM_TO_DYLIB_EXT = {
"android": ".so",
"darwin": ".dylib",
"eabi": ".so",
"emscripten": ".js",
"freebsd": ".so",
"ios": ".dylib",
Expand All @@ -128,6 +133,7 @@ _SYSTEM_TO_STDLIB_LINKFLAGS = {
"cloudabi": ["-lunwind", "-lc", "-lcompiler_rt"],
"darwin": ["-lSystem", "-lresolv"],
"dragonfly": ["-lpthread"],
"eabi": [],
"emscripten": [],
# TODO(bazelbuild/rules_cc#75):
#
Expand Down

0 comments on commit 6d789f9

Please sign in to comment.