[flang][msvc] Do not use gcc/clang command line options for msvc.
authorMichael Kruse <llvm-project@meinersbur.de>
Thu, 6 Aug 2020 20:44:47 +0000 (15:44 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Thu, 6 Aug 2020 20:46:52 +0000 (15:46 -0500)
commitf81bae9ff42f760ed4e3d8f7314a7aee2effe6aa
tree4750498df4e9977f19d375530df09035447981b8
parentbe02adfad7acf8040ad025b58052b3838db7e23b
[flang][msvc] Do not use gcc/clang command line options for msvc.

The command line options `-Wno-error` and `-Wno-unused-parameter` are specific to gcc/clang, do not use them when compiling with other compilers.

This patch is part of the series to [[ http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html | make flang compilable with MS Visual Studio ]].

Reviewed By: isuruf

Differential Revision: https://reviews.llvm.org/D85355
flang/lib/Lower/CMakeLists.txt
flang/lib/Optimizer/CMakeLists.txt