[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-12-14 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289668: [Driver] Allow setting the default linker during build (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D25263?vs=81276&id=81394#toc Repository: rL LLVM https://review

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-12-13 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 81276. phosek marked 3 inline comments as done. Repository: rL LLVM https://reviews.llvm.org/D25263 Files: CMakeLists.txt include/clang/Config/config.h.cmake include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/ToolChains.cpp lib

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-12-11 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld accepted this revision. Hahnfeld added a comment. This revision is now accepted and ready to land. LGTM with one nit Comment at: lib/Driver/ToolChain.cpp:362 + return UseLinker; + } else if (UseLinker == "ld") { +// If we're passed the argument ld, then use w

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-12-09 Thread Petr Hosek via Phabricator via cfe-commits
phosek added inline comments. Comment at: lib/Driver/ToolChain.cpp:362 + return UseLinker; + } else if (UseLinker == "ld") { +// If we're passed the argument ld, then use whatever the default system I'm wandering whether we shouldn't use `"platform"` in

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-12-09 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 80934. phosek marked 4 inline comments as done. Repository: rL LLVM https://reviews.llvm.org/D25263 Files: CMakeLists.txt include/clang/Config/config.h.cmake include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/ToolChains.cpp lib

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-11-30 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: lib/Driver/ToolChain.cpp:721-724 + +const char *ToolChain::getDefaultLinker() const { + return CLANG_DEFAULT_LINKER; +} sfertile wrote: > Hahnfeld wrote: > > I think this could go into the header > The CLANG_DEFAULT_LI

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-11-30 Thread Sean Fertile via Phabricator via cfe-commits
sfertile added inline comments. Comment at: lib/Driver/ToolChain.cpp:721-724 + +const char *ToolChain::getDefaultLinker() const { + return CLANG_DEFAULT_LINKER; +} Hahnfeld wrote: > I think this could go into the header The CLANG_DEFAULT_LINKER macro is getting

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-11-03 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. I have two high level remarks here: 1. `CLANG_DEFAULT_LINKER` should override whatever the platform default is. So `ToolChain::getDefaultLinker()` should return `ld` as the variable `DefaultLinker` currently says and the logic should be in `ToolChain::GetLinkerPath()`

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-11-02 Thread Petr Hosek via cfe-commits
phosek updated this revision to Diff 76720. phosek marked 3 inline comments as done. Repository: rL LLVM https://reviews.llvm.org/D25263 Files: CMakeLists.txt include/clang/Config/config.h.cmake include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/ToolChains.cpp lib

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-17 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. Have you run all tests with `CLANG_DEFAULT_LINKER` not being the platform default? I imagine there might be some tests that expect `ld` to be used... Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use (\"bfd\" or \"gold\" or \"lld\", empty for platform default") mgorny wrote: > Is there a reason not to allow using the absolute path

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use (\"bfd\" or \"gold\" or \"lld\", empty for platform default") Is there a reason not to allow using the absolute path here, like for

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-05 Thread Petr Hosek via cfe-commits
phosek created this revision. phosek added a subscriber: cfe-commits. phosek set the repository for this revision to rL LLVM. Herald added subscribers: mgorny, beanz. This change allows setting the default linker used by the Clang driver when configuring the build. Repository: rL LLVM https: