[clang] 6a8b66e - Fix test hip-options.hip
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 14:37:06 PDT 2023
Author: Yaxun (Sam) Liu
Date: 2023-07-27T17:36:38-04:00
New Revision: 6a8b66ec19675ff69a222181e77015a4b44b3dac
URL: https://github.com/llvm/llvm-project/commit/6a8b66ec19675ff69a222181e77015a4b44b3dac
DIFF: https://github.com/llvm/llvm-project/commit/6a8b66ec19675ff69a222181e77015a4b44b3dac.diff
LOG: Fix test hip-options.hip
Fix failure at https://lab.llvm.org/buildbot/#/builders/230/builds/16380
add --target=x86_64-unknown-linux-gnu to match FileCheck.
add -c to suppress the irrelevant warning about mktemp.
Change-Id: I8b36e76a227f079b7518b25fc2127b36008e3437
Added:
Modified:
clang/test/Driver/hip-options.hip
Removed:
################################################################################
diff --git a/clang/test/Driver/hip-options.hip b/clang/test/Driver/hip-options.hip
index b577a21a357a5a..255da876d7fe38 100644
--- a/clang/test/Driver/hip-options.hip
+++ b/clang/test/Driver/hip-options.hip
@@ -214,18 +214,18 @@
// NOUNIBLK: "-cc1"{{.*}} "-triple" "amdgcn-amd-amdhsa" {{.*}} "-fno-offload-uniform-block"
// NOUNIBLK: "-cc1"{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-fno-offload-uniform-block"
-// RUN: %clang -### -nogpuinc -nogpulib -foffload-uniform-block \
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib -foffload-uniform-block \
// RUN: --cuda-gpu-arch=gfx906 %s 2>&1 | FileCheck -check-prefix=UNIBLK %s
// UNIBLK: "-cc1"{{.*}} "-triple" "amdgcn-amd-amdhsa" {{.*}} "-foffload-uniform-block"
// UNIBLK: "-cc1"{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-foffload-uniform-block"
-// RUN: %clang -### -nogpuinc -nogpulib \
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib \
// RUN: --cuda-gpu-arch=gfx906 %s 2>&1 | FileCheck -check-prefix=DEFUNIBLK %s
// DEFUNIBLK-NOT: "-f{{(no-)?}}offload-uniform-block"
// Check no warnings for -f[no-]offload-uniform-block.
-// RUN: %clang -fdriver-only -Werror --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib -fno-offload-uniform-block \
+// RUN: %clang -fdriver-only -c -Werror --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib -fno-offload-uniform-block \
// RUN: -foffload-uniform-block --cuda-gpu-arch=gfx906 %s 2>&1 | count 0
More information about the cfe-commits
mailing list