-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flang] Fix cuda-option test on Darwin #85687
Conversation
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.
@llvm/pr-subscribers-flang-driver Author: Leandro Lupori (luporl) ChangesOn Darwin, -isysroot is needed and is automatically appended to Full diff: https://github.com/llvm/llvm-project/pull/85687.diff 1 Files Affected:
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
|
Reverted due to buildbot failures: https://lab.llvm.org/buildbot/#/builders/139/builds/61717/ This reverts commit b4b7d98.
This commit was mistakenly reverted in place of the actual failing commit prior; reapplying. This reverts commit db4170a.
Apologies - I accidentally reverted this commit in place of another commit I'd merged that was breaking buildbots; I've reapplied it now. |
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.
Reverted due to buildbot failures: https://lab.llvm.org/buildbot/#/builders/139/builds/61717/ This reverts commit b4b7d98.
This commit was mistakenly reverted in place of the actual failing commit prior; reapplying. This reverts commit db4170a.
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.