[libc-commits] [PATCH] D69020: Illustrate a redirector using the example of round function from math.h.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Oct 31 11:19:46 PDT 2019
sivachandra added inline comments.
================
Comment at: libc/cmake/modules/LLVMLibCRules.cmake:281
+ PRIVATE
+ -lc -lm
+ )
----------------
MaskRay wrote:
> `-lc` is implicit unless `-nolibc` (clang-only).
>
> `-nolibc` is implied by `-nodefaultlibs`. `-nodefaultlibs` is implied by `-nostdlib`.
I tried all the combinations I could think of (and also explicitly setting the linker language below.) But, CMake's link step is still adding `-lstdc++` to the driver command line. So, I am leaving it now as you suggest here. Will fix this up in later, more focused, round.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69020/new/
https://reviews.llvm.org/D69020
More information about the libc-commits
mailing list