Skip to content

gccprefix

TurkeyMan edited this page Mar 21, 2015 · 7 revisions

Home > [Project API](Project API) > gccprefix


gccprefix

The gccprefix function sets a prefix to be prepended to commands used by the GCC toolchain.

#!lua
gccprefix ("prefix")

GCC toolsets, and cross-compilers in particular, typically have some common prefix prepended to all tools in the GCC quite. This prefix will be prepended to all tools in the GCC suite.

Prefixes are usually composed of multiple segments separated by '-', and the prefix should contain the final dash. For instance, a toolchain of the style powerpc-eabi-gcc should have gccprefix powerpc-eabi-.

Applies To

Solutions, projects, and project configurations.

Parameters

A gccprefix string which is to be prepended to the GCC tools.

Returns

The current project gccprefix, or nil if no gccprefix has been set.

Examples

Set a GCC prefix to be prepended to the compiler tools.

#!lua
gccprefix "powerpc-eabi-"
Clone this wiki locally