[PATCH] D106871: [flang][driver] Forward `-fopenmp` to the host compiler

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 27 09:10:21 PDT 2021


awarzynski updated this revision to Diff 362059.
awarzynski added a comment.

Include `-fopenacc` in this change


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106871/new/

https://reviews.llvm.org/D106871

Files:
  flang/tools/f18/flang.in


Index: flang/tools/f18/flang.in
===================================================================
--- flang/tools/f18/flang.in
+++ flang/tools/f18/flang.in
@@ -200,8 +200,6 @@
       [[ $opt == "-flarge-sizes" ]] ||
       [[ $opt == "-flogical-abbreviations" ]] ||
       [[ $opt == "-fno-color-diagnostics" ]] ||
-      [[ $opt == "-fopenacc" ]] ||
-      [[ $opt == "-fopenmp" ]] ||
       [[ $opt == "-fxor-operator" ]] ||
       [[ $opt == "-help" ]] ||
       [[ $opt == "-nocpp" ]] ||
@@ -216,8 +214,13 @@
       # `-fdebug-unparse` will always be in free form.
       [[ $opt == "-Mfixed" ]] || [[ $opt == "-Mfree" ]]; then
       :
-    elif [[ $opt =~ -I.* ]] || [[ $opt =~ -J.* ]]; then
+    elif
       # Options that are needed for both Flang and the external driver.
+      [[ $opt =~ -I.* ]] ||
+      [[ $opt =~ -J.* ]] ||
+      [[ $opt == "-fopenmp" ]] ||
+      [[ $opt == "-fopenacc" ]] ||
+      ; then
       flang_opts+=($opt)
       fc_opts+=($opt)
     else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106871.362059.patch
Type: text/x-patch
Size: 985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210727/94c3fea5/attachment.bin>


More information about the llvm-commits mailing list