Skip to content

Commit 72bd0cd

Browse files
committed
Correct build failures.
Move the sycl-std= option out of a "let" block it shouldn't have been in.
1 parent ced00e8 commit 72bd0cd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

clang/include/clang/Driver/Options.td

+10-9
Original file line numberDiff line numberDiff line change
@@ -5516,15 +5516,6 @@ def fsycl_is_device : Flag<["-"], "fsycl-is-device">,
55165516
def fsycl_is_host : Flag<["-"], "fsycl-is-host">,
55175517
HelpText<"SYCL host compilation">,
55185518
MarshallingInfoFlag<LangOpts<"SYCLIsHost">>;
5519-
def sycl_std_EQ : Joined<["-"], "sycl-std=">, Group<sycl_Group>,
5520-
Flags<[CC1Option, NoArgumentUnused, CoreOption]>,
5521-
HelpText<"SYCL language standard to compile for.">,
5522-
Values<"2020,2017,121,1.2.1,sycl-1.2.1">,
5523-
NormalizedValues<["SYCL_2020", "SYCL_2017", "SYCL_2017", "SYCL_2017", "SYCL_2017"]>,
5524-
NormalizedValuesScope<"LangOptions">,
5525-
MarshallingInfoString<LangOpts<"SYCLVersion">, "SYCL_None">,
5526-
AutoNormalizeEnum,
5527-
ShouldParseIf<!strconcat(fsycl_is_device.KeyPath, "||", fsycl_is_host.KeyPath)>;
55285519
def fsycl_int_header : Separate<["-"], "fsycl-int-header">,
55295520
HelpText<"Generate SYCL integration header into this file.">,
55305521
MarshallingInfoString<LangOpts<"SYCLIntHeader">>;
@@ -5540,6 +5531,16 @@ def fenable_sycl_dae : Flag<["-"], "fenable-sycl-dae">,
55405531

55415532
} // let Flags = [CC1Option, NoDriverOption]
55425533

5534+
def sycl_std_EQ : Joined<["-"], "sycl-std=">, Group<sycl_Group>,
5535+
Flags<[CC1Option, NoArgumentUnused, CoreOption]>,
5536+
HelpText<"SYCL language standard to compile for.">,
5537+
Values<"2020,2017,121,1.2.1,sycl-1.2.1">,
5538+
NormalizedValues<["SYCL_2020", "SYCL_2017", "SYCL_2017", "SYCL_2017", "SYCL_2017"]>,
5539+
NormalizedValuesScope<"LangOptions">,
5540+
MarshallingInfoString<LangOpts<"SYCLVersion">, "SYCL_None">,
5541+
AutoNormalizeEnum,
5542+
ShouldParseIf<!strconcat(fsycl_is_device.KeyPath, "||", fsycl_is_host.KeyPath)>;
5543+
55435544
defm cuda_approx_transcendentals : BoolFOption<"cuda-approx-transcendentals",
55445545
LangOpts<"CUDADeviceApproxTranscendentals">, DefaultFalse,
55455546
PosFlag<SetTrue, [CC1Option], "Use">, NegFlag<SetFalse, [], "Don't use">,

0 commit comments

Comments
 (0)