From 46a0418889a6fae23bbf7d202bbe3a4c3770044e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sk=C3=B6ld?= Date: Sun, 17 Jan 2016 18:56:11 -0800 Subject: [PATCH] Adding an option for linking with dynamic runtime. --- scripts/toolchain.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index e9f523a..ad3a3e6 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -87,6 +87,11 @@ function toolchain(_buildDir, _libDir) 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. if (_ACTION == nil) then return false end @@ -387,8 +392,11 @@ function toolchain(_buildDir, _libDir) end end + if not _OPTIONS["with-dynamic-runtime"] then + flags { "StaticRuntime" } + end + flags { - "StaticRuntime", "NoPCH", "NativeWChar", "NoRTTI",