Add a comment about /llvm-lto/${llvm_version} convention

pull/436/head
YAMAMOTO Takashi 1 year ago
parent 252deae54d
commit 3432925134

@ -254,6 +254,8 @@ endfunction()
function(define_libcxx target)
define_libcxx_sub(${target} "" "" "")
# Note: clang knows this /llvm-lto/${llvm_version} convention.
# https://github.com/llvm/llvm-project/blob/llvmorg-18.1.8/clang/lib/Driver/ToolChains/WebAssembly.cpp#L204-L210
define_libcxx_sub(${target} "-lto" "-flto=full" "/llvm-lto/${llvm_version}")
# As of this writing, `clang++` will ignore the target-specific include dirs

Loading…
Cancel
Save