forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Driver] Emit an error when PCH is triggered in SYCL mode. (int…
…el#9689) Emit an error if PCH(Pre-Compiled Header) file generation is forced in -fsycl mode. --------- Co-authored-by: premanandrao <premanand.m.rao@intel.com>
- Loading branch information
1 parent
c9219ce
commit 0624465
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// This test checks that an error is emitted when | ||
// PCH(Precompiled Header) file generation is forced in -fsycl mode. | ||
|
||
// RUN: touch %t.h | ||
|
||
// Linux | ||
// RUN: %clang -c -fsycl -x c++-header %t.h -### %s 2> %t1.txt | ||
// RUN: FileCheck %s -input-file=%t1.txt | ||
// CHECK: Precompiled header generation is not supported with '-fsycl' | ||
|
||
// Windows | ||
// RUN: %clang_cl -c -fsycl -x c++-header %t.h -### -- %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefix=CHECK-ERROR %s | ||
// CHECK-ERROR: Precompiled header generation is not supported with '-fsycl' | ||
|
||
// /Yc | ||
// RUN: %clang_cl -fsycl /Ycpchfile.h /FIpchfile.h /c -### -- %s 2>&1 \ | ||
// RUN: | FileCheck -check-prefix=CHECK-YC %s | ||
// CHECK-YC: Precompiled header generation is not supported with '-fsycl' |