lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

50353228: Swift compile time regression with optimizations enabled #21224

Open openradar-mirror opened 5 years ago

openradar-mirror commented 5 years ago

Description

Summary: We have a file that took seconds to compile in Xcode 10.1 that now takes 40 minutes to compile in Xcode 10.2. This is blocking our team from updating to the latest version of Xcode.

Steps to Reproduce: 1. Download the attached Strings.swift file

  1. Run the following command:

time swiftc -O Strings.swift \ -o output.o \ -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk \ -target arm64-apple-ios12.2

Expected Results: File compiles within seconds.

Actual Results: Wait 30+ minutes for the file to compile.

Version/Build: Xcode 10.2 and 10.2.1

- Product Version: 10.2.1 Created: 2019-04-30T22:57:14.185276 Originated: 2019-04-01T00:00:00 Open Radar Link: http://www.openradar.me/50353228