[flang] Add cmake option to link with FIR and LLVM
authorTim Keith <tkeith@nvidia.com>
Wed, 13 Mar 2019 19:41:15 +0000 (12:41 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 13 Mar 2019 19:41:15 +0000 (12:41 -0700)
commit1c9f8d408e485c64f21b8c58ce203d31c00e1ec7
treec09f1d550fcd94038e46c009474f9b7634187761
parent3946e1faf13cfec7eb791d1f9d42edbd304db626
[flang] Add cmake option to link with FIR and LLVM

The cmake option -DLINK_WITH_FIR=ON causes the f18 driver to be linked
against FIR and LLVM. When it is set to OFF (the default), the call into
FIR is #ifdef'd out.

The source in lib/FIR is always built; this option only affects linking.

Original-commit: flang-compiler/f18@69569edd4c6abbb7a66c0d8f3595858693a06996
Reviewed-on: https://github.com/flang-compiler/f18/pull/329
flang/CMakeLists.txt
flang/tools/f18/CMakeLists.txt
flang/tools/f18/f18.cc