From 70defdcbca46ac42943eb2a2b242f348d509a86a Mon Sep 17 00:00:00 2001 From: megrez Date: Thu, 2 Mar 2017 14:36:15 +0800 Subject: [PATCH 1/3] update to latest XCode --- lib/curl_builder.rb | 6 +++--- lib/curl_builder/compiler.rb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/curl_builder.rb b/lib/curl_builder.rb index 3b98375..f354588 100644 --- a/lib/curl_builder.rb +++ b/lib/curl_builder.rb @@ -60,9 +60,9 @@ module CurlBuilder verbose: false, debug_symbols: false, curldebug: false, - sdk_version: "9.3", - osx_sdk_version: "10.11", - libcurl_version: "7.49.1", + sdk_version: "10.2", + osx_sdk_version: "10.12", + libcurl_version: "7.53.1", architectures: %w(i386 armv7 armv7s arm64 x86_64), xcode_home: "/Applications/Xcode.app/Contents/Developer", run_on_dir: Dir::pwd, diff --git a/lib/curl_builder/compiler.rb b/lib/curl_builder/compiler.rb index 3915cfd..0a34526 100644 --- a/lib/curl_builder/compiler.rb +++ b/lib/curl_builder/compiler.rb @@ -67,7 +67,7 @@ def platform_for(architecture) def tools_for(platform) { - cc: find_tool("gcc", platform), + cc: find_tool("clang", platform), ld: find_tool("ld", platform), ar: find_tool("ar", platform), as: find_tool("as", platform), @@ -96,7 +96,7 @@ def compilation_flags_for(platform, architecture) version = "6.0" min_version = "-miphoneos-version-min=#{version}" elsif platform == "iPhoneOS" - version = architecture == "arm64" ? "6.0" : "5.0" + version = architecture == "arm64" ? "7.0" : "6.0" min_version = "-miphoneos-version-min=#{version}" else min_version = "-mmacosx-version-min=10.7" @@ -106,8 +106,8 @@ def compilation_flags_for(platform, architecture) sdk = "#{setup(:xcode_home)}/Platforms/#{platform}.platform/Developer/SDKs/#{platform}#{sdk_version}.sdk" { - ldflags: "-arch #{architecture} -pipe -isysroot #{sdk}", - cflags: "-arch #{architecture} -pipe -isysroot #{sdk} #{min_version}" + ldflags: "-arch #{architecture} -isysroot #{sdk}", + cflags: "-arch #{architecture} -pipe -Os -gdwarf-2 -isysroot #{sdk} #{min_version} -fembed-bitcode -Werror=partial-availability" } end From 40cfe70887919750069ec32956b04315b6f67d6e Mon Sep 17 00:00:00 2001 From: megrez Date: Thu, 2 Mar 2017 18:22:59 +0800 Subject: [PATCH 2/3] fix min macos bug --- lib/curl_builder/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl_builder/compiler.rb b/lib/curl_builder/compiler.rb index 0a34526..bdfaebc 100644 --- a/lib/curl_builder/compiler.rb +++ b/lib/curl_builder/compiler.rb @@ -99,7 +99,7 @@ def compilation_flags_for(platform, architecture) version = architecture == "arm64" ? "7.0" : "6.0" min_version = "-miphoneos-version-min=#{version}" else - min_version = "-mmacosx-version-min=10.7" + min_version = "-mmacosx-version-min=10.8" end sdk_version = sdk_version_for platform From 19f0e97b197263a4a3ce764a716afe0b50633175 Mon Sep 17 00:00:00 2001 From: megrez Date: Mon, 22 Jan 2018 18:28:59 +0800 Subject: [PATCH 3/3] use latest sdk --- .idea/curl-ios-build-scripts.iml | 11 + .idea/inspectionProfiles/Project_Default.xml | 6 + .idea/misc.xml | 4 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 287 +++++++++++++++++++ lib/curl_builder.rb | 6 +- lib/curl_builder/packer.rb | 3 +- 8 files changed, 327 insertions(+), 4 deletions(-) create mode 100644 .idea/curl-ios-build-scripts.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/curl-ios-build-scripts.iml b/.idea/curl-ios-build-scripts.iml new file mode 100644 index 0000000..b05fb6b --- /dev/null +++ b/.idea/curl-ios-build-scripts.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..b0db9b0 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..437e62d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0a622be --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..7e6e529 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + configure + buildconf + debug + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +