Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5/tests/tools/test_gcc.lua
Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | -- | ||||
function suite.libDirs_onSysLibDirs() | function suite.libDirs_onSysLibDirs() | ||||
syslibdirs { "/usr/local/lib" } | syslibdirs { "/usr/local/lib" } | ||||
prepare() | prepare() | ||||
test.contains("-L/usr/local/lib", gcc.getLibraryDirectories(cfg)) | test.contains("-L/usr/local/lib", gcc.getLibraryDirectories(cfg)) | ||||
end | end | ||||
-- | -- | ||||
-- Check handling of search paths that come after the standard system search paths | |||||
-- | |||||
function suite.includeDirs_onAfterSysIncludeDirs() | |||||
aftersysincludedirs { "/usr/local/include" } | |||||
prepare() | |||||
test.contains("-idirafter /usr/local/include", gcc.getincludedirs(cfg, cfg.includedirs, cfg.sysincludedirs, cfg.aftersysincludedirs)) | |||||
end | |||||
-- | |||||
-- Check handling of link time optimization flag. | -- Check handling of link time optimization flag. | ||||
-- | -- | ||||
function suite.cflags_onLinkTimeOptimization() | function suite.cflags_onLinkTimeOptimization() | ||||
flags "LinkTimeOptimization" | flags "LinkTimeOptimization" | ||||
prepare() | prepare() | ||||
test.contains("-flto", gcc.getcflags(cfg)) | test.contains("-flto", gcc.getcflags(cfg)) | ||||
end | end | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator