[libc-commits] [PATCH] D105643: [libc] Don't pass -fpie/-ffreestanding on Windows
Caitlyn Cano via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jul 8 15:24:17 PDT 2021
caitlyncano added inline comments.
================
Comment at: libc/cmake/modules/LLVMLibCObjectRules.cmake:6
+ if(${LIBC_TARGET_OS} STREQUAL "windows")
+ set(${output_var} ${output_var} /Qfreestanding PARENT_SCOPE)
+ else()
----------------
caitlyncano wrote:
> aeubanks wrote:
> > actually I don't see this available in clang-cl or msvc, where did you find this?
> This is the for the Intel compiler and since the Linux flag syntax was the same I figured I could use the Windows equivalent? Not sure (https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/advanced-optimization-options/ffreestanding-qfreestanding.html)
But it seems like in this article (https://nullprogram.com/blog/2016/01/31/) -ffreestanding is available on MinGW so maybe that's where we'd have to build llvmlibc to ensure the freestanding environment?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105643/new/
https://reviews.llvm.org/D105643
More information about the libc-commits
mailing list