[flang] Fix issues with -DBUILD_SHARED_LIBS=On
authorJean Perier <jperier@nvidia.com>
Wed, 19 Feb 2020 13:19:08 +0000 (05:19 -0800)
committerJean Perier <jperier@nvidia.com>
Wed, 19 Feb 2020 13:25:35 +0000 (05:25 -0800)
commit24b9ef8727a2e86fb6c78d5328a8edc1b8dfce0e
tree89297d82741f3302a050b25a9396324a23736a08
parentaa9fc5bddcbccfc7adc8f05dbd579cb0b94f7e20
[flang] Fix issues with -DBUILD_SHARED_LIBS=On

This re-ordering allows building f18 with shared library using and LLVM build
with static libraries.

This reordering (that also made sens form an alphabetical point of view)
works here to do such "shared+archive" compiling because the current
dependency on LLVM is simple (only one f18 lib + an executable depends on LLVM).
As soon as two f18 libraries will depend on LLVM, one will have to use an LLVM
version built with -DBUILD_SHARED_LIBS=On if one wants to use this option
to compile f18.

Original-commit: flang-compiler/f18@bbbbe9c1aa2fd38dc2164a6440290dbbea1518e2
Reviewed-on: https://github.com/flang-compiler/f18/pull/994
flang/tools/f18/CMakeLists.txt