# fsyntax-only

Tells the compiler to check only for correct syntax.

## Syntax

Linux: | -fsyntax-only

macOS: | -fsyntax-only

Windows: | None

## Arguments

None

## Default

OFF | Normal compilation is performed.

## Description

This option tells the compiler to check only for correct syntax. No object file is produced.

## IDE Equivalent

None

## Alternate Options

Linux and macOS: None

Windows: /Zs

Parent topic: Language Options