Only add -ffreestanding flag in full build mode.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/cmake/modules/LLVMLibCTestRules.cmake | ||
---|---|---|
170 | A cleaner approach is likely: target_compile_options( ${fq_build_target_name} PRIVATE -fpie ${LIBC_COMPILE_OPTIONS_DEFAULT}) ) if(LLVM_LIBC_FULL_BUILD) target_compile_options(${fq_build_target_name} PRIVATE -ffreestanding) endif() |
A cleaner approach is likely: