Skip to content

Commit 7331029

Browse files
committed
[SYCL][ROCm] Fix missing arch diagnostic formatting
1 parent 0a01af1 commit 7331029

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def err_drv_expecting_fsycl_with_sycl_opt : Error<
290290
def err_drv_fsycl_with_c_type : Error<
291291
"'%0' must not be used in conjunction with '-fsycl', which expects C++ source">;
292292
def err_drv_sycl_missing_amdgpu_arch : Error<
293-
"Missing AMDGPU architecture for SYCL offloading. Please specify it with -Xsycl-target-backend --offload-arch.">;
293+
"missing AMDGPU architecture for SYCL offloading; specify it with '-Xsycl-target-backend --offload-arch'">;
294294
def warn_drv_sycl_offload_target_duplicate : Warning<
295295
"SYCL offloading target '%0' is similar to target '%1' already specified; "
296296
"will be ignored">, InGroup<SyclTarget>;

clang/test/Driver/sycl-offload-amdgcn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
88
// RUN: -fsycl-targets=amdgcn-amd-amdhsa-sycldevice %s 2>&1 \
99
// RUN: | FileCheck -check-prefix=CHK-ARCH %s
10-
// CHK-ARCH: error: Missing AMDGPU architecture for SYCL offloading. Please specify it with -Xsycl-target-backend --offload-arch.
10+
// CHK-ARCH: error: missing AMDGPU architecture for SYCL offloading; specify it with '-Xsycl-target-backend --offload-arch'
1111

1212
/// Check action graph.
1313
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \

0 commit comments

Comments
 (0)