diff options
| author | Jim Ingham <jingham@apple.com> | 2012-05-24 01:16:09 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-05-24 01:16:09 +0000 |
| commit | 777e6d01ea4fe8f7cac76f0287e4124959f733f2 (patch) | |
| tree | 15cf469b3b7c909a7cef01c720e9d08951f51510 | |
| parent | c11535c248cfa3744eb273b3af282097924950d1 (diff) | |
| download | bcm5719-llvm-777e6d01ea4fe8f7cac76f0287e4124959f733f2.tar.gz bcm5719-llvm-777e6d01ea4fe8f7cac76f0287e4124959f733f2.zip | |
Change the "Debug" build to use the current MacOSX SDK. Fix the swig builder to have an explicit
short-circuit of the Python SWIG building, rather than relying on the SDKROOT being set.
llvm-svn: 157363
| -rw-r--r-- | lldb/lldb.xcodeproj/project.pbxproj | 7 | ||||
| -rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lldb/lldb.xcodeproj/project.pbxproj b/lldb/lldb.xcodeproj/project.pbxproj index 62915fd7ef8..29217c90010 100644 --- a/lldb/lldb.xcodeproj/project.pbxproj +++ b/lldb/lldb.xcodeproj/project.pbxproj @@ -4058,6 +4058,8 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_VALUE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + LLDB_DISABLE_PYTHON = 0; + "LLDB_DISABLE_PYTHON[sdk=iphoneos*]" = 1; LLDB_FRAMEWORK_INSTALL_DIR = /Applications/Xcode.app/Contents/SharedFrameworks; LLDB_TOOLS_INSTALL_DIR = /usr/bin; LLVM_BUILD_DIR = "$(SRCROOT)/llvm-build/$(LLVM_CONFIGURATION)"; @@ -4069,6 +4071,7 @@ "-flimit-debug-info", "-Wparentheses", ); + SDKROOT = macosx; STRIP_INSTALLED_PRODUCT = NO; STRIP_STYLE = debugging; VALID_ARCHS = "armv4t armv5 armv6 armv7 armv7s i386 ppc ppc64 ppc7400 ppc970 x86_64"; @@ -4111,6 +4114,8 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_VALUE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + LLDB_DISABLE_PYTHON = 0; + "LLDB_DISABLE_PYTHON[sdk=iphoneos*]" = 1; LLDB_FRAMEWORK_INSTALL_DIR = /Applications/Xcode.app/Contents/SharedFrameworks; LLDB_TOOLS_INSTALL_DIR = /usr/bin; LLVM_BUILD_DIR = "$(SRCROOT)/llvm-build/$(LLVM_CONFIGURATION)"; @@ -4475,6 +4480,8 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_VALUE = YES; GCC_WARN_UNUSED_VARIABLE = YES; + LLDB_DISABLE_PYTHON = 0; + "LLDB_DISABLE_PYTHON[sdk=iphoneos*]" = 1; LLDB_FRAMEWORK_INSTALL_DIR = /Applications/Xcode.app/Contents/SharedFrameworks; "LLDB_FRAMEWORK_INSTALL_DIR[sdk=iphoneos*]" = /System/Library/PrivateFrameworks; LLDB_TOOLS_INSTALL_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin; diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh index 76c53839724..be747bffdb6 100755 --- a/lldb/scripts/Python/build-swig-Python.sh +++ b/lldb/scripts/Python/build-swig-Python.sh @@ -24,7 +24,12 @@ swig_python_extensions=${SRC_ROOT}/scripts/Python/python-extensions.swig swig_python_wrapper=${SRC_ROOT}/scripts/Python/python-wrapper.swig swig_python_typemaps=${SRC_ROOT}/scripts/Python/python-typemaps.swig -if [ "x$SDKROOT" = "x" ] ; then +if [ $LLDB_DISABLE_PYTHON = "1" ] ; then + # SDKROOT was not empty, which currently means iOS cross build where python is disabled + rm -rf ${swig_output_file} + touch ${swig_output_file} + +else if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ] then @@ -303,8 +308,4 @@ then fi fi -else - # SDKROOT was not empty, which currently means iOS cross build where python is disabled - rm -rf ${swig_output_file} - touch ${swig_output_file} fi |

