LLVM Clang Gets Support For Configuration Files
Written by Michael Larabel in LLVM on 30 December 2017 at 04:18 PM EST. 6 Comments
LLVM --
Ahead of next week's LLVM 6.0 feature freeze / code branching, the Clang C/C++ compiler front-end has picked up support for the concept of configuration files.

Clang configuration files basically come down to a file that can store multiple parameters to pass to Clang, just as you would otherwise do via the command-line but can now be stored into a text file. The purpose of these Clang configuration files is mainly for cross-compiler arguments or other use-cases where you may otherwise be passing a ton of repeated arguments to Clang.
A configuration file is a collection of driver options, which are inserted into command line before other options specified in the clang invocation. It groups related options together and allows specifying them in simpler, more flexible and less error prone way than just listing the options somewhere in build scripts. Configuration file may be thought as a "macro" that names an option set and is expanded when the driver is called.

Clang configuration files can be passed using the --config switch with clang. More details via the documentation added by this commit.
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related LLVM News
Popular News This Week