Adding an option for linking with dynamic runtime.

This commit is contained in:
Johan Sköld
2016-01-17 18:56:11 -08:00
parent e2b58e859b
commit 46a0418889

View File

@@ -87,6 +87,11 @@ function toolchain(_buildDir, _libDir)
description = "Set tvOS target version (default: 9.0).", description = "Set tvOS target version (default: 9.0).",
} }
newoption {
trigger = "with-dynamic-runtime",
description = "Dynamically link with the runtime rather than statically",
}
-- Avoid error when invoking genie --help. -- Avoid error when invoking genie --help.
if (_ACTION == nil) then return false end if (_ACTION == nil) then return false end
@@ -387,8 +392,11 @@ function toolchain(_buildDir, _libDir)
end end
end end
if not _OPTIONS["with-dynamic-runtime"] then
flags { "StaticRuntime" }
end
flags { flags {
"StaticRuntime",
"NoPCH", "NoPCH",
"NativeWChar", "NativeWChar",
"NoRTTI", "NoRTTI",