Skip to content
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

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

luporl
Copy link
Contributor

@luporl luporl commented Mar 18, 2024

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.

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.
@llvmbot llvmbot added flang:driver flang Flang issues not falling into any other category labels Mar 18, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Mar 18, 2024

@llvm/pr-subscribers-flang-driver

Author: Leandro Lupori (luporl)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/85687.diff

1 Files Affected:

  • (modified) flang/test/Driver/cuda-option.f90 (+2-2)
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

@luporl luporl requested a review from clementval March 18, 2024 19:54
@luporl luporl merged commit b4b7d98 into llvm:main Mar 19, 2024
7 checks passed
@luporl luporl deleted the luporl-fix-cuda-test branch March 19, 2024 14:35
SLTozer added a commit that referenced this pull request Mar 19, 2024
SLTozer added a commit that referenced this pull request Mar 19, 2024
This commit was mistakenly reverted in place of the actual failing
commit prior; reapplying.

This reverts commit db4170a.
@SLTozer
Copy link
Contributor

SLTozer commented Mar 19, 2024

Apologies - I accidentally reverted this commit in place of another commit I'd merged that was breaking buildbots; I've reapplied it now.

chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
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.
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
This commit was mistakenly reverted in place of the actual failing
commit prior; reapplying.

This reverts commit db4170a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:driver flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants