Skip to content

Command Line Options

Dandielo edited this page Nov 30, 2017 · 4 revisions

Available options to use with premake5.

--fb-vstudio

Whith this option you can generate FastBuild targets which can be used to generate a Visual Studio soluton which uses FastBuild instead of the default compiler.

The generated fastbuild target will have the following name {workspace_name}_sln which you can build with the following command fbuild -config {workspace_name}.wks.bff {workspace_name}_sln.

--fb-cache-path=PATH

Sets the .CachePath entry in the Settings section in the fastbuild {workspace}.wks.bff file. This can be used instead of setting the FASTBUILD_CACHE_PATH enviroment variable.

--fb-unity-builds

Enables the generation of fastbuild Unity functions which are then passed to the ObjectList function.

Just the use of this param however is not sufficient, a project which should be enabled for Unity builds should also have the FBUnityBuild flag set.

project "BazProject"
    --- ...
    flags { "FBUnityBuild" }

Additionally you can disable Unity builds for certain files compiling them normally using the FBUnityBuildDisabled flag.

filter { "files:foo.cpp" }
    flags { "FBUnityBuildDisabled" }