cmake - Is it possible to compile & link Clang/LLVM using the gold linker? -
i'm writing custom pass llvm/clang, , recompiling tends take while , use lot of memory. i've heard gold linker (1) takes less time , (2) uses less memory standard ld linker.
is there way pass flags llvm/clang build process , change gold linker? per this answer, i've been attempting use override file, don't seem having lot of success.
i'll note i'm compiling latest clang/llvm build (4.0) using clang 3.9; don't mind switching gcc if necessary rather avoid it.
post-4.0 (after commit rl292047), should set llvm_use_linker gold so:
cmake ... -dllvm_use_linker=gold ... refer http://llvm.org/docs/cmake.html#llvm-specific-variables
Comments
Post a Comment