Merge pull request #38172 from dtzWill/update/swift-4.1

swift: 4.0.3 -> 4.1

authored by Will Dietz and committed by GitHub 136a6d94 97aa38c1

+41 -272
+24 -42
pkgs/development/compilers/swift/default.nix
··· 37 }: 38 39 let 40 - v_major = "4.0.3"; 41 version = "${v_major}-RELEASE"; 42 version_friendly = "${v_major}"; 43 ··· 55 # For more inforation, see: https://github.com/apple/swift/pull/3594#issuecomment-234169759 56 clang = fetch { 57 repo = "swift-clang"; 58 - sha256 = "0zm624iwiprk3c3nzqf4p1fd9zqic4yi3jv51cw3249ax4x6vy10"; 59 }; 60 llvm = fetch { 61 repo = "swift-llvm"; 62 - sha256 = "11vw6461c0cdvwm1wna1a5709fjj14hzp6br6jg94p4f6jp3yv4d"; 63 }; 64 compilerrt = fetch { 65 repo = "swift-compiler-rt"; 66 - sha256 = "1hj4qaj4c9n2wzg2cvarbyl0n708zd1dlw4zkzq07fjxxqs36nfa"; 67 }; 68 cmark = fetch { 69 repo = "swift-cmark"; ··· 71 }; 72 lldb = fetch { 73 repo = "swift-lldb"; 74 - sha256 = "0yk5qg85008vcn63vn2jpn5ls9pdhda222p2w1cfkrj27k5k8vqr"; 75 }; 76 llbuild = fetch { 77 repo = "swift-llbuild"; 78 - sha256 = "0jffw6z1s6ck1i05brw59x6vsg7zrxbz5n2wz72fj29rh3nppc7a"; 79 }; 80 pm = fetch { 81 repo = "swift-package-manager"; 82 - sha256 = "0xj070b8fii7ijfsnyq4fxgv6569vdrg0yippi85h2p1l7s9aagh"; 83 }; 84 xctest = fetch { 85 repo = "swift-corelibs-xctest"; 86 - sha256 = "0l355wq8zfwrpv044xf4smjwbm0bmib360748n8cwls3vkr9l2yv"; 87 }; 88 foundation = fetch { 89 repo = "swift-corelibs-foundation"; 90 - sha256 = "0s7yc5gsbd96a4bs8c6q24dyfjm4xhcr2nzhl2ics8dmi60j15s4"; 91 }; 92 libdispatch = fetch { 93 repo = "swift-corelibs-libdispatch"; 94 - sha256 = "0x8zzq3shhvmhq4sbhaaa0ddiv3nw347pz6ayym6jyzq7j9n15ia"; 95 fetchSubmodules = true; 96 }; 97 swift = fetch { 98 repo = "swift"; 99 - sha256 = "0a1gq0k5701i418f0qi7kywv16q7vh4a4wp0f6fpyv4sjkq27msx"; 100 }; 101 }; 102 ··· 132 install_destdir=$SWIFT_INSTALL_DIR \ 133 extra_cmake_options="${stdenv.lib.concatStringsSep "," cmakeFlags}"''; 134 135 - # from llvm/4/llvm.nix 136 - sigaltstackPatch = fetchpatch { 137 - name = "sigaltstack.patch"; # for glibc-2.26 138 - url = https://github.com/llvm-mirror/compiler-rt/commit/8a5e425a68d.diff; 139 - sha256 = "0h4y5vl74qaa7dl54b1fcyqalvlpd8zban2d1jxfkxpzyi7m8ifi"; 140 - }; 141 - 142 - # https://bugs.swift.org/browse/SR-6409 143 - sigunusedPatch = fetchpatch { 144 - name = "sigunused.patch"; 145 - url = "https://github.com/apple/swift-llbuild/commit/303a89bc6da606c115560921a452686aa0655f5e.diff"; 146 - sha256 = "04sw7ym1grzggj1v3xrzr2ljxz8rf9rnn9n5fg1xjbwlrdagkc7m"; 147 - }; 148 in 149 stdenv.mkDerivation rec { 150 name = "swift-${version_friendly}"; ··· 179 180 configurePhase = '' 181 cd .. 182 - 183 export INSTALLABLE_PACKAGE=$PWD/swift.tar.gz 184 185 mkdir build install ··· 236 '' + '' 237 patch -p1 -d swift -i ${./patches/0001-build-presets-linux-don-t-require-using-Ninja.patch} 238 patch -p1 -d swift -i ${./patches/0002-build-presets-linux-allow-custom-install-prefix.patch} 239 - patch -p1 -d swift -i ${./patches/0003-build-presets-linux-disable-tests.patch} 240 patch -p1 -d swift -i ${./patches/0004-build-presets-linux-plumb-extra-cmake-options.patch} 241 - # https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 242 - patch -p1 -i ${./patches/remove_xlocale.patch} 243 - # https://bugs.swift.org/browse/SR-4633 244 - patch -p1 -d swift -i ${./patches/icu59.patch} 245 246 # https://bugs.swift.org/browse/SR-5779 247 sed -i -e 's|"-latomic"|"-Wl,-rpath,${clang.cc.gcc.lib}/lib" "-L${clang.cc.gcc.lib}/lib" "-latomic"|' swift/cmake/modules/AddSwift.cmake 248 249 - # https://bugs.swift.org/browse/SR-4838 250 - sed -i -e '30i#include <functional>' lldb/include/lldb/Utility/TaskPool.h 251 - 252 - substituteInPlace clang/lib/Driver/ToolChains.cpp \ 253 --replace ' addPathIfExists(D, SysRoot + "/usr/lib", Paths);' \ 254 ' addPathIfExists(D, SysRoot + "/usr/lib", Paths); addPathIfExists(D, "${glibc}/lib", Paths);' 255 patch -p1 -d clang -i ${./purity.patch} ··· 258 sed -i 's,curses,ncurses,' llbuild/*/*/CMakeLists.txt 259 260 # This test fails on one of my machines, not sure why. 261 - # Disabling for now. 262 rm llbuild/tests/Examples/buildsystem-capi.llbuild 263 264 PREFIX=''${out/#\/} 265 substituteInPlace swift-corelibs-xctest/build_script.py \ 266 --replace usr "$PREFIX" 267 substituteInPlace swiftpm/Utilities/bootstrap \ 268 - --replace "usr" "$PREFIX" 269 - '' + stdenv.lib.optionalString (stdenv ? glibc) '' 270 - patch -p1 -d compiler-rt -i ${sigaltstackPatch} 271 - patch -p1 -d compiler-rt -i ${./patches/sigaltstack.patch} 272 - patch -p1 -d llbuild -i ${sigunusedPatch} 273 - patch -p1 -i ${./patches/sigunused.patch} 274 ''; 275 276 doCheck = false; ··· 305 maintainers = with maintainers; [ dtzWill ]; 306 license = licenses.asl20; 307 # Swift doesn't support 32bit Linux, unknown on other platforms. 308 - platforms = [ "x86_64-linux" ]; 309 }; 310 } 311
··· 37 }: 38 39 let 40 + v_major = "4.1"; 41 version = "${v_major}-RELEASE"; 42 version_friendly = "${v_major}"; 43 ··· 55 # For more inforation, see: https://github.com/apple/swift/pull/3594#issuecomment-234169759 56 clang = fetch { 57 repo = "swift-clang"; 58 + sha256 = "0j8bi6jv4m4hqiib02q5cvnxd9j6bwiri853x6px86vai3mdff0h"; 59 }; 60 llvm = fetch { 61 repo = "swift-llvm"; 62 + sha256 = "03558f5zbchqvdabi3x9ahyz4xkmj7w69gazivz372832lgr9zfh"; 63 }; 64 compilerrt = fetch { 65 repo = "swift-compiler-rt"; 66 + sha256 = "1wkymmxi2v759xkwlzfrq9rivndjfvp6ikrzz10mvvrvyvrgwqnl"; 67 }; 68 cmark = fetch { 69 repo = "swift-cmark"; ··· 71 }; 72 lldb = fetch { 73 repo = "swift-lldb"; 74 + sha256 = "09x3d3bc6rn9g6jpi3fb120c4r2carsmqla4bq4scjrs0867jz9m"; 75 }; 76 llbuild = fetch { 77 repo = "swift-llbuild"; 78 + sha256 = "04y0ihfyam2n671vmpk9gy0gb9lb3ivh6mr19862p5kg5bmrcic1"; 79 }; 80 pm = fetch { 81 repo = "swift-package-manager"; 82 + sha256 = "08d87fc29qq7m92jaxkiczsa7b567pwbibiwwkzdrj6a0gr11qn3"; 83 }; 84 xctest = fetch { 85 repo = "swift-corelibs-xctest"; 86 + sha256 = "1alkgxx8jsr2jjv2kchnjaaddb1byjwim015m1z3qxh6lknqm0k5"; 87 }; 88 foundation = fetch { 89 repo = "swift-corelibs-foundation"; 90 + sha256 = "06pbhb7wg4q5qgprhiyzbqy6hssga7xxjclhlh81gd6rvfd6bxvw"; 91 }; 92 libdispatch = fetch { 93 repo = "swift-corelibs-libdispatch"; 94 + sha256 = "198vskbajch8s168a649qz5an92i2mxmmmzcjlgxlzh38fgxri0n"; 95 fetchSubmodules = true; 96 }; 97 swift = fetch { 98 repo = "swift"; 99 + sha256 = "1flvr12bg8m4k44yq0xy9qrllv5rpxgxisjgbpakk5p3myfsx7ky"; 100 }; 101 }; 102 ··· 132 install_destdir=$SWIFT_INSTALL_DIR \ 133 extra_cmake_options="${stdenv.lib.concatStringsSep "," cmakeFlags}"''; 134 135 in 136 stdenv.mkDerivation rec { 137 name = "swift-${version_friendly}"; ··· 166 167 configurePhase = '' 168 cd .. 169 + 170 export INSTALLABLE_PACKAGE=$PWD/swift.tar.gz 171 172 mkdir build install ··· 223 '' + '' 224 patch -p1 -d swift -i ${./patches/0001-build-presets-linux-don-t-require-using-Ninja.patch} 225 patch -p1 -d swift -i ${./patches/0002-build-presets-linux-allow-custom-install-prefix.patch} 226 patch -p1 -d swift -i ${./patches/0004-build-presets-linux-plumb-extra-cmake-options.patch} 227 + 228 + sed -i swift/utils/build-presets.ini \ 229 + -e 's/^test-installable-package$/# \0/' \ 230 + -e 's/^test$/# \0/' \ 231 + -e 's/^validation-test$/# \0/' \ 232 + -e 's/^long-test$/# \0/' 233 234 # https://bugs.swift.org/browse/SR-5779 235 sed -i -e 's|"-latomic"|"-Wl,-rpath,${clang.cc.gcc.lib}/lib" "-L${clang.cc.gcc.lib}/lib" "-latomic"|' swift/cmake/modules/AddSwift.cmake 236 237 + substituteInPlace clang/lib/Driver/ToolChains/Linux.cpp \ 238 --replace ' addPathIfExists(D, SysRoot + "/usr/lib", Paths);' \ 239 ' addPathIfExists(D, SysRoot + "/usr/lib", Paths); addPathIfExists(D, "${glibc}/lib", Paths);' 240 patch -p1 -d clang -i ${./purity.patch} ··· 243 sed -i 's,curses,ncurses,' llbuild/*/*/CMakeLists.txt 244 245 # This test fails on one of my machines, not sure why. 246 + # Disabling for now. 247 rm llbuild/tests/Examples/buildsystem-capi.llbuild 248 249 PREFIX=''${out/#\/} 250 substituteInPlace swift-corelibs-xctest/build_script.py \ 251 --replace usr "$PREFIX" 252 substituteInPlace swiftpm/Utilities/bootstrap \ 253 + --replace \"usr\" \"$PREFIX\" \ 254 + --replace usr/lib "$PREFIX/lib" 255 ''; 256 257 doCheck = false; ··· 286 maintainers = with maintainers; [ dtzWill ]; 287 license = licenses.asl20; 288 # Swift doesn't support 32bit Linux, unknown on other platforms. 289 + platforms = platforms.linux; 290 + badPlatforms = platforms.i686; 291 }; 292 } 293
-38
pkgs/development/compilers/swift/patches/0003-build-presets-linux-disable-tests.patch
··· 1 - From fcc7c216da6cd255f884b7aa39f361786e3afa6a Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 28 Mar 2017 15:02:18 -0500 4 - Subject: [PATCH 3/4] build-presets: (linux) disable tests. 5 - 6 - --- 7 - utils/build-presets.ini | 8 ++++---- 8 - 1 file changed, 4 insertions(+), 4 deletions(-) 9 - 10 - diff --git a/utils/build-presets.ini b/utils/build-presets.ini 11 - index 1095cbaab7..1739e91dc2 100644 12 - --- a/utils/build-presets.ini 13 - +++ b/utils/build-presets.ini 14 - @@ -700,7 +700,7 @@ build-swift-stdlib-unittest-extra 15 - 16 - # Executes the lit tests for the installable package that is created 17 - # Assumes the swift-integration-tests repo is checked out 18 - -test-installable-package 19 - +# test-installable-package 20 - 21 - # Path to the root of the installation filesystem. 22 - install-destdir=%(install_destdir)s 23 - @@ -713,9 +713,9 @@ mixin-preset=mixin_linux_installation 24 - build-subdir=buildbot_linux 25 - lldb 26 - release 27 - -test 28 - -validation-test 29 - -long-test 30 - +#test 31 - +#validation-test 32 - +#long-test 33 - foundation 34 - libdispatch 35 - lit-args=-v 36 - -- 37 - 2.12.2 38 -
···
-113
pkgs/development/compilers/swift/patches/icu59.patch
··· 1 - --- a/stdlib/public/stubs/UnicodeNormalization.cpp 2 - +++ b/stdlib/public/stubs/UnicodeNormalization.cpp 3 - @@ -86,11 +86,8 @@ ASCIICollation() { 4 - for (unsigned char c = 0; c < 128; ++c) { 5 - UErrorCode ErrorCode = U_ZERO_ERROR; 6 - intptr_t NumCollationElts = 0; 7 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 8 - UChar Buffer[1]; 9 - -#else 10 - - uint16_t Buffer[1]; 11 - -#endif 12 - + 13 - Buffer[0] = c; 14 - 15 - UCollationElements *CollationIterator = 16 - @@ -127,18 +124,9 @@ swift::_swift_stdlib_unicode_compare_utf16_utf16(const uint16_t *LeftString, 17 - int32_t LeftLength, 18 - const uint16_t *RightString, 19 - int32_t RightLength) { 20 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 21 - - // ICU UChar type is platform dependent. In Cygwin, it is defined 22 - - // as wchar_t which size is 2. It seems that the underlying binary 23 - - // representation is same with swift utf16 representation. 24 - return ucol_strcoll(GetRootCollator(), 25 - reinterpret_cast<const UChar *>(LeftString), LeftLength, 26 - reinterpret_cast<const UChar *>(RightString), RightLength); 27 - -#else 28 - - return ucol_strcoll(GetRootCollator(), 29 - - LeftString, LeftLength, 30 - - RightString, RightLength); 31 - -#endif 32 - } 33 - 34 - /// Compares the strings via the Unicode Collation Algorithm on the root locale. 35 - @@ -156,12 +144,8 @@ swift::_swift_stdlib_unicode_compare_utf8_utf16(const unsigned char *LeftString, 36 - UErrorCode ErrorCode = U_ZERO_ERROR; 37 - 38 - uiter_setUTF8(&LeftIterator, reinterpret_cast<const char *>(LeftString), LeftLength); 39 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 40 - uiter_setString(&RightIterator, reinterpret_cast<const UChar *>(RightString), 41 - RightLength); 42 - -#else 43 - - uiter_setString(&RightIterator, RightString, RightLength); 44 - -#endif 45 - 46 - uint32_t Diff = ucol_strcollIter(GetRootCollator(), 47 - &LeftIterator, &RightIterator, &ErrorCode); 48 - @@ -199,14 +183,10 @@ swift::_swift_stdlib_unicode_compare_utf8_utf8(const unsigned char *LeftString, 49 - void *swift::_swift_stdlib_unicodeCollationIterator_create( 50 - const __swift_uint16_t *Str, __swift_uint32_t Length) { 51 - UErrorCode ErrorCode = U_ZERO_ERROR; 52 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 53 - UCollationElements *CollationIterator = ucol_openElements( 54 - GetRootCollator(), reinterpret_cast<const UChar *>(Str), Length, 55 - &ErrorCode); 56 - -#else 57 - - UCollationElements *CollationIterator = ucol_openElements( 58 - - GetRootCollator(), Str, Length, &ErrorCode); 59 - -#endif 60 - + 61 - if (U_FAILURE(ErrorCode)) { 62 - swift::crash("_swift_stdlib_unicodeCollationIterator_create: ucol_openElements() failed."); 63 - } 64 - @@ -244,17 +224,12 @@ swift::_swift_stdlib_unicode_strToUpper(uint16_t *Destination, 65 - const uint16_t *Source, 66 - int32_t SourceLength) { 67 - UErrorCode ErrorCode = U_ZERO_ERROR; 68 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 69 - uint32_t OutputLength = u_strToUpper(reinterpret_cast<UChar *>(Destination), 70 - DestinationCapacity, 71 - reinterpret_cast<const UChar *>(Source), 72 - SourceLength, 73 - "", &ErrorCode); 74 - -#else 75 - - uint32_t OutputLength = u_strToUpper(Destination, DestinationCapacity, 76 - - Source, SourceLength, 77 - - "", &ErrorCode); 78 - -#endif 79 - + 80 - if (U_FAILURE(ErrorCode) && ErrorCode != U_BUFFER_OVERFLOW_ERROR) { 81 - swift::crash("u_strToUpper: Unexpected error uppercasing unicode string."); 82 - } 83 - @@ -271,17 +246,12 @@ swift::_swift_stdlib_unicode_strToLower(uint16_t *Destination, 84 - const uint16_t *Source, 85 - int32_t SourceLength) { 86 - UErrorCode ErrorCode = U_ZERO_ERROR; 87 - -#if defined(__CYGWIN__) || defined(_MSC_VER) 88 - uint32_t OutputLength = u_strToLower(reinterpret_cast<UChar *>(Destination), 89 - DestinationCapacity, 90 - reinterpret_cast<const UChar *>(Source), 91 - SourceLength, 92 - "", &ErrorCode); 93 - -#else 94 - - uint32_t OutputLength = u_strToLower(Destination, DestinationCapacity, 95 - - Source, SourceLength, 96 - - "", &ErrorCode); 97 - -#endif 98 - + 99 - if (U_FAILURE(ErrorCode) && ErrorCode != U_BUFFER_OVERFLOW_ERROR) { 100 - swift::crash("u_strToLower: Unexpected error lowercasing unicode string."); 101 - } 102 - @@ -300,9 +300,9 @@ 103 - 104 - swift::__swift_stdlib_UBreakIterator *swift::__swift_stdlib_ubrk_open( 105 - swift::__swift_stdlib_UBreakIteratorType type, const char *locale, 106 - - const UChar *text, int32_t textLength, __swift_stdlib_UErrorCode *status) { 107 - + const __swift_stdlib_UChar * text, __swift_int32_t textLength, __swift_stdlib_UErrorCode *status) { 108 - return ptr_cast<swift::__swift_stdlib_UBreakIterator>( 109 - - ubrk_open(static_cast<UBreakIteratorType>(type), locale, text, textLength, 110 - + ubrk_open(static_cast<UBreakIteratorType>(type), locale, reinterpret_cast<const UChar *>(text), textLength, 111 - ptr_cast<UErrorCode>(status))); 112 - } 113 -
···
-54
pkgs/development/compilers/swift/patches/remove_xlocale.patch
··· 1 - --- a/swift/stdlib/public/SDK/os/os_trace_blob.c 2 - +++ b/swift/stdlib/public/SDK/os/os_trace_blob.c 3 - @@ -14,7 +14,6 @@ 4 - #include <dispatch/dispatch.h> 5 - #include <os/base.h> 6 - #include <os/log.h> 7 - -#include <xlocale.h> 8 - #include "os_trace_blob.h" 9 - 10 - OS_NOINLINE 11 - 12 - --- a/swift/stdlib/public/stubs/Stubs.cpp 13 - +++ b/swift/stdlib/public/stubs/Stubs.cpp 14 - @@ -61,7 +61,6 @@ 15 - #define strtof_l swift_strtof_l 16 - #define strtold_l swift_strtold_l 17 - #else 18 - -#include <xlocale.h> 19 - #endif 20 - #include <limits> 21 - #include "llvm/ADT/StringExtras.h" 22 - 23 - --- a/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringDefaultEncoding.h 24 - +++ b/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringDefaultEncoding.h 25 - @@ -20,7 +20,6 @@ 26 - #include <unistd.h> 27 - #include <string.h> 28 - #include <stdio.h> 29 - -#include <xlocale.h> 30 - 31 - CF_EXTERN_C_BEGIN 32 - 33 - 34 - --- a/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringEncodings.c 35 - +++ b/swift-corelibs-foundation/CoreFoundation/String.subproj/CFStringEncodings.c 36 - @@ -24,7 +24,6 @@ 37 - #include <unistd.h> 38 - #include <string.h> 39 - #include <stdio.h> 40 - -#include <xlocale.h> 41 - #include <CoreFoundation/CFStringDefaultEncoding.h> 42 - #endif 43 - 44 - 45 - --- a/swift-corelibs-foundation/CoreFoundation/Base.subproj/CFInternal.h 46 - +++ b/swift-corelibs-foundation/CoreFoundation/Base.subproj/CFInternal.h 47 - @@ -95,7 +95,6 @@ 48 - #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI || DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD 49 - #if TARGET_OS_CYGWIN 50 - #else 51 - -#include <xlocale.h> 52 - #endif 53 - #include <unistd.h> 54 - #include <sys/time.h>
···
-11
pkgs/development/compilers/swift/patches/sigaltstack.patch
··· 1 - --- a/lib/esan/esan_sideline_linux.cpp 2 - +++ b/lib/esan/esan_sideline_linux.cpp 3 - @@ -70,7 +70,7 @@ int SidelineThread::runSideline(void *Arg) { 4 - 5 - // Set up a signal handler on an alternate stack for safety. 6 - InternalScopedBuffer<char> StackMap(SigAltStackSize); 7 - - struct sigaltstack SigAltStack; 8 - + stack_t SigAltStack; 9 - SigAltStack.ss_sp = StackMap.data(); 10 - SigAltStack.ss_size = SigAltStackSize; 11 - SigAltStack.ss_flags = 0;
···
-11
pkgs/development/compilers/swift/patches/sigunused.patch
··· 1 - --- a/swiftpm/Sources/Basic/Process.swift 2 - +++ b/swiftpm/Sources/Basic/Process.swift 3 - @@ -258,7 +258,7 @@ public func launch() throws { 4 - // modify, so we have to take care about the set we use. 5 - var mostSignals = sigset_t() 6 - sigemptyset(&mostSignals) 7 - - for i in 1 ..< SIGUNUSED { 8 - + for i in 1 ..< SIGSYS { 9 - if i == SIGKILL || i == SIGSTOP { 10 - continue 11 - }
···
+17 -3
pkgs/development/compilers/swift/purity.patch
··· 1 - --- a/lib/Driver/Tools.cpp 2016-08-25 15:48:05.187553443 +0200 2 - +++ b/lib/Driver/Tools.cpp 2016-08-25 15:48:47.534468882 +0200 3 - @@ -9420,13 +9420,6 @@ 4 if (!Args.hasArg(options::OPT_static)) { 5 if (Args.hasArg(options::OPT_rdynamic)) 6 CmdArgs.push_back("-export-dynamic"); ··· 14 } 15 16 CmdArgs.push_back("-o");
··· 1 + From 4add81bba40dcec62c4ea4481be8e35ac53e89d8 Mon Sep 17 00:00:00 2001 2 + From: Will Dietz <w@wdtz.org> 3 + Date: Thu, 18 May 2017 11:56:12 -0500 4 + Subject: [PATCH] "purity" patch for 5.0 5 + 6 + --- 7 + lib/Driver/ToolChains/Gnu.cpp | 7 ------- 8 + 1 file changed, 7 deletions(-) 9 + 10 + diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp 11 + index fe3c0191bb..c6a482bece 100644 12 + --- a/lib/Driver/ToolChains/Gnu.cpp 13 + +++ b/lib/Driver/ToolChains/Gnu.cpp 14 + @@ -494,13 +494,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, 15 if (!Args.hasArg(options::OPT_static)) { 16 if (Args.hasArg(options::OPT_rdynamic)) 17 CmdArgs.push_back("-export-dynamic"); ··· 25 } 26 27 CmdArgs.push_back("-o"); 28 + -- 29 + 2.11.0 30 +