[flang-commits] [flang] b4b7d98 - [flang] Fix cuda-option test on Darwin (#85687)

via flang-commits flang-commits at lists.llvm.org
Tue Mar 19 07:35:58 PDT 2024


Author: Leandro Lupori
Date: 2024-03-19T11:35:52-03:00
New Revision: b4b7d988bdb48827a822d9c87fdc460dceae5cab

URL: https://github.com/llvm/llvm-project/commit/b4b7d988bdb48827a822d9c87fdc460dceae5cab
DIFF: https://github.com/llvm/llvm-project/commit/b4b7d988bdb48827a822d9c87fdc460dceae5cab.diff

LOG: [flang] Fix cuda-option test on Darwin (#85687)

On Darwin, -isysroot is needed and is automatically appended to
%flang and %flang_fc1, so use %flang_fc1 instead to have both -fc1
and -isysroot in the expected positions and avoid errors.

Added: 
    

Modified: 
    flang/test/Driver/cuda-option.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/cuda-option.f90 b/flang/test/Driver/cuda-option.f90
index 112e1cb6c77f8c..562f8683b0ff7d 100644
--- a/flang/test/Driver/cuda-option.f90
+++ b/flang/test/Driver/cuda-option.f90
@@ -1,6 +1,6 @@
 ! Test -fcuda option
-! RUN: %flang -fc1 -cpp -x cuda -fdebug-unparse %s -o - | FileCheck %s
-! RUN: not %flang -fc1 -cpp %s -o - 2>&1 | FileCheck %s --check-prefix=ERROR
+! RUN: %flang_fc1 -cpp -x cuda -fdebug-unparse %s -o - | FileCheck %s
+! RUN: not %flang_fc1 -cpp %s -o - 2>&1 | FileCheck %s --check-prefix=ERROR
 program main
 #if _CUDA
   integer :: var = _CUDA


        


More information about the flang-commits mailing list