On Mon, Dec 14, 2015 at 3:16 PM, William Dillon <will...@housedillon.com> wrote: > Thanks Dmitri, > > I’ve been reading cmake files all day, and noticing that some references to > the gold linker (specifically this one in cmake/modules/AddSwift): > > 1058 # Handle gold linker flags for shared libraries. > 1059 if(SWIFT_ENABLE_GOLD_LINKER AND SWIFTLIB_SINGLE_SHARED) > 1060 if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "LINUX") > 1061 # Extend the link_flags for the gold linker so long as this > 1062 # isn't the standard library. The standard library uses a > 1063 # linker script that isn't supported by the gold linker. > 1064 if(NOT SWIFTLIB_SINGLE_IS_STDLIB) > 1065 list(APPEND link_flags "-fuse-ld=gold") > 1066 endif() > 1067 endif() > 1068 endif() > > imply that there are/may be issues with the gold linker. But, if you’re not > using it… :)
Yes, it is possible to use by requesting it with a build-script option (--use-gold-linker), but I haven't been using it in this test. > Anyway, I’ll keep digging. Thanks! Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev