This requires changing the ELF build to enable -fPIC, consistent
with other platforms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hm, I kind of like the PIC-less build. But probably not worth having a toggle for it, I suppose. So lg, but:
llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn | ||
---|---|---|
16 | probably should update these too: % rg -F 'rget_type = "static_librar' llvm/utils/gn llvm/utils/gn/secondary/compiler-rt/lib/tsan/BUILD.gn 12: tsan_target_type = "static_library" llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn 12: asan_target_type = "static_library" llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn 16: libclang_target_type = "static_library" llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn 8: lto_target_type = "static_library" |
llvm/utils/gn/secondary/clang/tools/libclang/BUILD.gn | ||
---|---|---|
16 | Done for llvm/tools/lto. For the sanitizers the shared-ness of the runtime is tied to what works best on that platform, rather than whether it's PIC by default (note that all compiler-rt code is built with -fPIC), so I left them as is. |
llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn | ||
---|---|---|
20 | Run gn format before comitting, it'll put this at the top. |
probably should update these too: