diff options
author | Tobias Markmann <tm@ayena.de> | 2014-11-24 14:49:45 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-11-24 19:22:21 (GMT) |
commit | 59cf59db314becf523fea2b840d7a237c2f6f246 (patch) | |
tree | a1fcc007269ec1c88161259906fd6c55d37e961c /BuildTools/SCons | |
parent | 4421b9f37aeca8769915a3200a59b7ac45a03149 (diff) | |
download | swift-59cf59db314becf523fea2b840d7a237c2f6f246.zip swift-59cf59db314becf523fea2b840d7a237c2f6f246.tar.bz2 |
Disable file-transfer support for iOS.
iOS SDK does not have net/route.h interface as part of its public API. File-transfer
requires UPnP/NAT-PMP for a good user experience which in turn require detection
of the default gateway/router. Disabiling file-transfer support for iOS until we
know a valid way to detect the default gateway/router on iOS.
Test-Information:
Tested against iPhone/iPhoneSimulator8.1 SDKs.
Change-Id: I1303f37c025e8c6309acefcd80b9b30a3ac18fbb
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r-- | BuildTools/SCons/SConscript.boot | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index acd1272..00242fe 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -270,6 +270,10 @@ if env.get("mac106", 0) : if not env["assertions"] : env.Append(CPPDEFINES = ["NDEBUG"]) +# disable file-transfer support on iOS +if env["target"] in ["iphone-device", "iphone-simulator", "xcode"] : + env["experimental_ft"] = False + if env["experimental_ft"] : env.Append(CPPDEFINES = ["SWIFT_EXPERIMENTAL_FT"]) |