[OPENMP] Force OpenMP 4.5 when compiling for offloading.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jul 2018 15:17:38 +0000 (15:17 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 26 Jul 2018 15:17:38 +0000 (15:17 +0000)
commit77403dee052d729e06c4d84b7668dec0a9c3c27d
tree0639c9796e7e6b878c5b37c1256f4314699c4de0
parent7bfa5d65446e7dda1a8e54c806f5d7687766bb2d
[OPENMP] Force OpenMP 4.5 when compiling for offloading.

If the user requested compilation for OpenMP with the offloading
support, force the version of the OpenMP standard to 4.5 by default.

llvm-svn: 338032
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/OpenMP/driver.c