Skip to content

vectorextensions

starkos edited this page Sep 26, 2013 · 10 revisions

The vectorextensions function specifies the level of vector processing extensions to enable while compiling the target configuration.

#!lua
vectorextensions "level"

If no value is set for a configuration, the toolset's default vector extension settings will be used.

Parameters

level specifies the desired level of vector processing instructions; one of the following:

Value Description
Default Use the toolset's default vector extension settings.
SSE Use the basic SSE instruction set.
SSE2 Use the SSE2 instruction set.

Applies To

Solutions, projects, and project configurations.

Availability

Premake 5.0.

Examples

#!lua
-- Enable SSE2 vector processing
vectorextensions "SSE2"
Clone this wiki locally