llvm-project/flang/unittests/Evaluate
Rainer Orth 3119bdb5d6 [Flang][CMake] Add explicit libFortranCommon dependency for f18 etc.
When I tried Solaris builds with `-DBUILD_SHARED_LIBS=ON`, some commands failed
to link:

  [ 94%] Linking CXX executable ../../../../bin/f18
  Undefined                       first referenced
   symbol                             in file
  Fortran::common::IntrinsicTypeDefaultKinds::set_sizeIntegerKind(int) CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  Fortran::common::IntrinsicTypeDefaultKinds::set_subscriptIntegerKind(int) CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  Fortran::common::EnumIndexToString[abi:cxx11](int, char const*) CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  Fortran::common::IntrinsicTypeDefaultKinds::set_defaultIntegerKind(int) CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  Fortran::common::IntrinsicTypeDefaultKinds::IntrinsicTypeDefaultKinds() CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  Fortran::common::IntrinsicTypeDefaultKinds::set_defaultRealKind(int) CMakeFiles/f18.dir/f18.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-shared-gcc8-make/lib/libFortranCommon.so.11git)
  ld: fatal: symbol referencing errors

This patch fixes this by adding explicit dependencies on `libFortranCommon`
to the affected commands.

Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86-64-pc-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D78761
2020-04-28 13:28:41 +02:00
..
CMakeLists.txt [Flang][CMake] Add explicit libFortranCommon dependency for f18 etc. 2020-04-28 13:28:41 +02:00
ISO-Fortran-binding.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
bit-population-count.cpp [flang] Create a separate directory for unittests 2020-03-13 11:58:11 +00:00
expression.cpp [flang] Create a separate directory for unittests 2020-03-13 11:58:11 +00:00
folding.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
fp-testing.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
fp-testing.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
integer.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
intrinsics.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
leading-zero-bit-count.cpp [flang] Create a separate directory for unittests 2020-03-13 11:58:11 +00:00
logical.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
real.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
reshape.cpp [flang] Create a separate directory for unittests 2020-03-13 11:58:11 +00:00
testing.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
testing.h [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
uint128.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00