]> granicus.if.org Git - clang/commit
[Order Files] Don't use empty order files
authorChris Bieneman <beanz@apple.com>
Thu, 11 Aug 2016 00:19:51 +0000 (00:19 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 11 Aug 2016 00:19:51 +0000 (00:19 +0000)
commitf7250e52a73ad735e46a4874e9789822931cc1cf
tree37faa3f0b59edbc7cc3b376d3675caddba754f5a
parentb0f2f6f050858b565fdc6732a796314d28388d98
[Order Files] Don't use empty order files

LD64 does optimization on symbol layouts that gets disabled whenever an order file is passed (even if it is empty). This change prevents disabling that optimization, and still enables iterative generation and usage of order files.

If the order file is empty it does not setup the order file flags, instead it sets the empty order file as a configuration dependency. When the order file changes it will then trigger a re-configuration that adds the linker flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278306 91177308-0d34-0410-b5e6-96231b3b80d8
tools/driver/CMakeLists.txt