@@ -278,17 +278,29 @@ impl LinkSelfContained {
278278 }
279279
280280 /// Returns whether the self-contained linker component was enabled on the CLI, using the
281- /// `-C link-self-contained=+linker` syntax, or one of the `true` shorcuts .
281+ /// `-C link-self-contained=+linker` syntax, or one of the `true` shortcuts .
282282 pub fn is_linker_enabled ( & self ) -> bool {
283283 self . enabled_components . contains ( LinkSelfContainedComponents :: LINKER )
284284 }
285285
286286 /// Returns whether the self-contained linker component was disabled on the CLI, using the
287- /// `-C link-self-contained=-linker` syntax, or one of the `false` shorcuts .
287+ /// `-C link-self-contained=-linker` syntax, or one of the `false` shortcuts .
288288 pub fn is_linker_disabled ( & self ) -> bool {
289289 self . disabled_components . contains ( LinkSelfContainedComponents :: LINKER )
290290 }
291291
292+ // Returns whether the self-contained sanitizer component was enabled on the CLI, using the
293+ // `-C link-self-contained=+sanitizers` syntax, or one of the `true` shortcuts.
294+ pub fn is_sanitizers_enabled ( & self ) -> bool {
295+ self . enabled_components . contains ( LinkSelfContainedComponents :: SANITIZERS )
296+ }
297+
298+ /// Returns whether the self-contained linker component was disabled on the CLI, using the
299+ /// `-C link-self-contained=-sanitizers` syntax, or one of the `false` shortcuts.
300+ pub fn is_sanitizers_disabled ( & self ) -> bool {
301+ self . disabled_components . contains ( LinkSelfContainedComponents :: SANITIZERS )
302+ }
303+
292304 /// Returns CLI inconsistencies to emit errors: individual components were both enabled and
293305 /// disabled.
294306 fn check_consistency ( & self ) -> Option < LinkSelfContainedComponents > {
0 commit comments