-qsourcetype
In IBM® XL C/C++ for AIX® 16.1.0 or earlier releases, the -qsourcetype option instructs the compiler to treat all recognized source files as a specified source type, regardless of the actual file name suffix. All source files following -qsourcetype=assembler are compiled as if they were assembler language source files.
In IBM XL C/C++ for AIX
16.1.0 or earlier
releases, files with either the .S or .s suffix are preprocessed
before being passed to the assembler. In IBM Open XL C/C++ for AIX 17.1.2, only
files with the .S suffix can be preprocessed. Hence, if a .s file
needs to be preprocessed, either rename it to the .S file or use the -x
assembler-with-cpp option to let the compiler treat it as an assembler language source
file.
Related information
- The "Clang command line argument reference" section in the Clang documentation