Beispiel #1
0
def swiftc_path():
    ret = ""
    if os.environ.get("CONFIGURATION") == "BuildAndIntegration":
        ret = os.path.join(os.environ.get("TOOLCHAIN_DIR"), "usr", "bin",
                           "swiftc")
    else:
        ret = os.path.join(lldbbuild.expected_package_build_path_for("swift"),
                           "bin", "swiftc")
    print "swiftc is at " + ret
    return ret
Beispiel #2
0
def swiftc_path():
    ret = ""
    if os.environ.get("CONFIGURATION") == "BuildAndIntegration":
        ret = os.path.join(os.environ.get("TOOLCHAIN_DIR"), "usr", "bin", "swiftc")
    else:
        ret = os.path.join(
            lldbbuild.expected_package_build_path_for("swift"),
            "bin",
            "swiftc")
    print "swiftc is at " + ret
    return ret
def swiftc_path():
    return os.path.join(lldbbuild.expected_package_build_path_for ("swift"), "bin", "swiftc")
import lldbbuild

if len(sys.argv) != 3:
    print "usage: " + sys.argv[0] + " TARGET_DIR LLVM_BUILD_DIR"
    sys.exit(1)

if os.environ['LLVM_CONFIGURATION'] == 'BuildAndIntegration':
    print "Not copying Swift resources in B&I"
    sys.exit(0)

if os.environ['ACTION'] == 'install':
    print "Not copying Swift resources during installation"
    sys.exit(0)

target_dir = sys.argv[1]
swift_build_dir = lldbbuild.expected_package_build_path_for("swift")

if not os.path.isdir(target_dir):
    print target_dir + " doesn't exist"
    sys.exit(1)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-macosx-", "-iphoneos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-iphoneos-", "-appletvos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-appletvos-", "-watchos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):
Beispiel #5
0
# LLVM_BUILD_DIR is where LLVM and Clang got built
# LLVM_BUILD_DIR/lib/clang should exist and contain headers

import os
import re
import shutil
import sys

import lldbbuild

if len(sys.argv) != 3:
    print "usage: " + sys.argv[0] + " TARGET_DIR LLVM_BUILD_DIR"
    sys.exit(1)

target_dir = sys.argv[1]
llvm_build_dir = lldbbuild.expected_package_build_path_for("llvm")

if not os.path.isdir(target_dir):
    print target_dir + " doesn't exist"
    sys.exit(1)

if not os.path.isdir(llvm_build_dir):
    llvm_build_dir = re.sub("-macosx-", "-iphoneos-", llvm_build_dir)

if not os.path.isdir(llvm_build_dir):
    llvm_build_dir = re.sub("-iphoneos-", "-appletvos-", llvm_build_dir)

if not os.path.isdir(llvm_build_dir):
    llvm_build_dir = re.sub("-appletvos-", "-watchos-", llvm_build_dir)

if not os.path.isdir(llvm_build_dir):
Beispiel #6
0
def swiftc_path():
    return os.path.join(lldbbuild.expected_package_build_path_for("swift"),
                        "bin", "swiftc")
import lldbbuild

if len(sys.argv) != 3:
    print "usage: " + sys.argv[0] + " TARGET_DIR LLVM_BUILD_DIR"
    sys.exit(1)

if os.environ['LLVM_CONFIGURATION'] == 'BuildAndIntegration':
    print "Not copying Swift resources in B&I"
    sys.exit(0)

if os.environ['ACTION'] == 'install':
    print "Not copying Swift resources during installation"
    sys.exit(0)

target_dir = sys.argv[1]
swift_build_dir = lldbbuild.expected_package_build_path_for("swift")

if not os.path.isdir(target_dir):
    print target_dir + " doesn't exist"
    sys.exit(1)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-macosx-", "-iphoneos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-iphoneos-", "-appletvos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):
    swift_build_dir = re.sub("-appletvos-", "-watchos-", swift_build_dir)

if not os.path.isdir(swift_build_dir):