mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Adding an option for linking with dynamic runtime.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user