Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions qualcomm-software/embedded-multilib/json/multilib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"json": "aarch64a.json",
"flags": "--target=aarch64-unknown-none-elf"
},
{
"variant": "aarch64a_standalone",
"json": "aarch64a_standalone.json",
"flags": "--target=aarch64-unknown-none-elf -fmultilib-flag=standalone",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please explain what does this flag do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a multilib custom flag (https://clang.llvm.org/docs/Multilib.html#multilib-custom-flags) used only for multilib selection. We have already added a few other custom flag to help with multilib selection for variants like shadow call stack, multi-threading, etc.

"libraries_supported": "musl-embedded"
},
{
"variant": "aarch64a_pacret",
"json": "aarch64a_pacret.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"args": {
"common": {
"TARGET_ARCH": "aarch64a",
"VARIANT": "aarch64a_standalone",
"COMPILE_FLAGS": "-march=armv8-a -fPIC",
"ENABLE_EXCEPTIONS": "OFF",
"ENABLE_RTTI": "OFF",
"TEST_EXECUTOR": "qemu",
"QEMU_MACHINE": "virt",
"QEMU_CPU": "cortex-a57",
"FLASH_ADDRESS": "0x40000000",
"FLASH_SIZE": "0x00400000",
"RAM_ADDRESS": "0x40400000",
"RAM_SIZE": "0x00200000",
"LIBRARY_BUILD_TYPE": "minsizerelease"
},
"musl-embedded": {
"ENABLE_CXX_LIBS": "ON",
"ENABLE_LIBC_TESTS": "OFF",
"ENABLE_COMPILER_RT_TESTS": "OFF",
"ENABLE_LIBCXX_TESTS": "OFF",
"EXTRA_MUSL-EMBEDDED_CONFIG_FLAGS": "--quic-libc-standalone",
"EXTRA_MUSL-EMBEDDED_CFLAGS": "-mstrict-align -D__QUIC_ENABLE_FLT_FOR_PRINT"
}
}
}
5 changes: 5 additions & 0 deletions qualcomm-software/embedded-multilib/multilib.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Flags:
- Name: no-threads
- Name: threads
Default: threads
- Name: musl-subvariant
Values:
- Name: standalone
- Name: no-subvariant
Default: no-subvariant

# The list of library variants is substituted in by CMakeLists.txt, so
# that it can respect the LLVM_TOOLCHAIN_LIBRARY_VARIANTS setting and
Expand Down
Loading