# print-sysroot

Prints the target sysroot directory that is used during compilation.

## Syntax

Linux: | -print-sysroot

macOS: | None

Windows: | None

## Arguments

None

## Default

OFF | Nothing is printed.

## Description

This option prints the target sysroot directory that is used during compilation.

This is the target sysroot directory that is specified in an environment file or in option --sysroot. This option is only effective if a target sysroot has been specified.

This option is provided for compatibility with gcc.

### Note

Even though this option is not supported for a Windows-to-Windows native compiler, it is supported for a Windows-host to Linux-target compiler.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Miscellaneous Options

## See Also

sysroot compiler option