@@ -859,7 +859,7 @@ def Xs_separate : Separate<["-"], "Xs">, HelpText<"Pass <arg> to the offline com
859859def z : Separate<["-"], "z">, Flags<[LinkerInput, RenderAsInput]>,
860860 HelpText<"Pass -z <arg> to the linker">, MetaVarName<"<arg>">,
861861 Group<Link_Group>;
862- def offload_link : Flag<["--"], "offload-link">, Group<Link_Group>,
862+ def offload_link : Flag<["--", "-" ], "offload-link">, Group<Link_Group>,
863863 HelpText<"Use the new offloading linker to perform the link job.">;
864864def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>,
865865 HelpText<"Pass <arg> to the linker">, MetaVarName<"<arg>">,
@@ -965,7 +965,7 @@ def fno_bundle_offload_arch : Flag<["-"], "fno-bundle-offload-arch">,
965965 "uses the bundle tag `nvptx64-nvidia-cuda` when used. "
966966 "This allows .o files to contain .bc bundles that are unspecific "
967967 "to a particular arch version.">;
968- def offload_arch_EQ : Joined<["--"], "offload-arch=">, Flags<[NoXarchOption]>,
968+ def offload_arch_EQ : Joined<["--", "-" ], "offload-arch=">, Flags<[NoXarchOption]>,
969969 HelpText<"CUDA offloading device architecture (e.g. sm_35), or HIP offloading target ID in the form of a "
970970 "device architecture followed by target ID features delimited by a colon. Each target ID feature "
971971 "is a pre-defined string followed by a plus or minus sign (e.g. gfx908:xnack+:sramecc-). May be "
@@ -977,7 +977,7 @@ def hip_link : Flag<["--"], "hip-link">,
977977 HelpText<"Link clang-offload-bundler bundles for HIP">;
978978def no_hip_rt: Flag<["-"], "no-hip-rt">,
979979 HelpText<"Do not link against HIP runtime libraries">;
980- def no_offload_arch_EQ : Joined<["--"], "no-offload-arch=">, Flags<[NoXarchOption]>,
980+ def no_offload_arch_EQ : Joined<["--", "-" ], "no-offload-arch=">, Flags<[NoXarchOption]>,
981981 HelpText<"Remove CUDA/HIP offloading device architecture (e.g. sm_35, gfx906) from the list of devices to compile for. "
982982 "'all' resets the list to its default value.">;
983983def emit_static_lib : Flag<["--"], "emit-static-lib">,
@@ -1224,7 +1224,7 @@ defm autolink : BoolFOption<"autolink",
12241224// In the future this option will be supported by other offloading
12251225// languages and accept other values such as CPU/GPU architectures,
12261226// offload kinds and target aliases.
1227- def offload_EQ : CommaJoined<["--"], "offload=">, Flags<[NoXarchOption]>,
1227+ def offload_EQ : CommaJoined<["--", "-" ], "offload=">, Flags<[NoXarchOption]>,
12281228 HelpText<"Specify comma-separated list of offloading target triples (CUDA and HIP only)">;
12291229
12301230// C++ Coroutines TS
@@ -2665,15 +2665,15 @@ defm openmp_optimistic_collapse : BoolFOption<"openmp-optimistic-collapse",
26652665 PosFlag<SetTrue, [CC1Option]>, NegFlag<SetFalse>, BothFlags<[NoArgumentUnused, HelpHidden]>>;
26662666def static_openmp: Flag<["-"], "static-openmp">,
26672667 HelpText<"Use the static host OpenMP runtime while linking.">;
2668- def offload_new_driver : Flag<["--"], "offload-new-driver">, Flags<[CC1Option]>, Group<f_Group>,
2668+ def offload_new_driver : Flag<["--", "-" ], "offload-new-driver">, Flags<[CC1Option]>, Group<f_Group>,
26692669 MarshallingInfoFlag<LangOpts<"OffloadingNewDriver">>, HelpText<"Use the new driver for offloading compilation.">;
2670- def no_offload_new_driver : Flag<["--"], "no-offload-new-driver">, Flags<[CC1Option]>, Group<f_Group>,
2670+ def no_offload_new_driver : Flag<["--", "-" ], "no-offload-new-driver">, Flags<[CC1Option]>, Group<f_Group>,
26712671 HelpText<"Don't Use the new driver for offloading compilation.">;
2672- def offload_device_only : Flag<["--"], "offload-device-only">,
2672+ def offload_device_only : Flag<["--", "-" ], "offload-device-only">,
26732673 HelpText<"Only compile for the offloading device.">;
2674- def offload_host_only : Flag<["--"], "offload-host-only">,
2674+ def offload_host_only : Flag<["--", "-" ], "offload-host-only">,
26752675 HelpText<"Only compile for the offloading host.">;
2676- def offload_host_device : Flag<["--"], "offload-host-device">,
2676+ def offload_host_device : Flag<["--", "-" ], "offload-host-device">,
26772677 HelpText<"Only compile for the offloading host.">;
26782678def cuda_device_only : Flag<["--"], "cuda-device-only">, Alias<offload_device_only>,
26792679 HelpText<"Compile CUDA code for device only">;
0 commit comments