[PATCH] D51899: Remove extraneous ".a" suffix from baremetal clang_rt.builtins when compiling for baremetal.
Robert Widmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 10 17:32:49 PDT 2018
CodaFi added a comment.
@kristina They're having linker troubles because this driver is hardcoding an incorrect linker flag for libbuiltin on the arm-baremetal triple. https://reviews.llvm.org/D33259 introduced this incorrect behavior by smashing together the incorrect `-lclang_rt.builtins-armv6m` flag with the proper resource-directory-relative absolute path `<RESOURCE_DIR>/lib/libclang_rt.builtins-armv6m.a`. The driver should be forming an exact path to this library relative to the resource directory. If users wish to override this behavior, they need to pass `-nostdlib` or ` -nodefaultlibs`
https://reviews.llvm.org/D51899
More information about the cfe-commits
mailing list