Skip to content

Commit 076857b

Browse files
committed
Restore fsycl-is-device functionality that was lost after conflict resolution
1 parent d856e99 commit 076857b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5479,7 +5479,8 @@ def fopenmp_host_ir_file_path : Separate<["-"], "fopenmp-host-ir-file-path">,
54795479

54805480
def fsycl_is_device : Flag<["-"], "fsycl-is-device">,
54815481
HelpText<"Generate code for SYCL device.">,
5482-
MarshallingInfoFlag<LangOpts<"SYCLIsDevice">>;
5482+
MarshallingInfoFlag<LangOpts<"SYCLIsDevice">>,
5483+
ShouldParseIf<fsycl.KeyPath>;
54835484
def fsycl_is_host : Flag<["-"], "fsycl-is-host">,
54845485
HelpText<"SYCL host compilation">,
54855486
MarshallingInfoFlag<LangOpts<"SYCLIsHost">>;

0 commit comments

Comments
 (0)