You copied the Doc URL to your clipboard.

@file

Reads a list of compiler options from a file.

Syntax

@file

Where file is the name of a file containing armclang options to include on the command line.

Usage

The options in the specified file are inserted in place of the @file option.

Use whitespace or new lines to separate options in the file. Enclose strings in single or double quotes to treat them as a single word.

You can specify multiple @file options on the command line to include options from multiple files. Files can contain more @file options.

If any @file option specifies a non-existent file or circular dependency, armclang exits with an error.

Example

Consider a file options.txt with the following content:

"-I../my libs/"
--target=aarch64-arm-none-eabi -mcpu=cortex-a57

Compile a source file main.c with the following command line:

armclang @options.txt main.c

This command is equivalent to the following:

armclang -I"../my libs/" --target=aarch64-arm-none-eabi -mcpu=cortex-a57 main.c
Was this page helpful? Yes No