Skip to content

Periodic merge main -> release 6.2 #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 46 commits into
base: release/6.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
677320c
Move fallback developer directory determination into the plugin system
jakepetroules Apr 3, 2025
fa0371a
Pass '-needed…' linker flags for XCTest libraries to suppress warning…
stmontgomery Apr 7, 2025
d5260bb
Add a workspeace for codevelopment of SwiftPM + Swift Build on macOSw…
owenv Apr 7, 2025
5831366
Fix typo in PR template's Swift CI test command (#380)
stmontgomery Apr 7, 2025
ad31a14
Move asset catalog code generation rule ordering into SWBApplePlatfor…
owenv Apr 8, 2025
086ceee
Use -Xlinker when constructing response files for Swift AST paths (#384)
owenv Apr 8, 2025
41553c1
Allow initializing the build system with the containing toolchain as …
owenv Apr 8, 2025
1f56372
Support TBDs in BuildDependencyInfo (rdar://142294767)
mirza-garibovic Apr 7, 2025
5cb9094
Set PATH to ensure the linker driver is able to find a linker in a di…
owenv Apr 9, 2025
253fbdf
Refactor nextValueForMacro so it does not rely on tail call optimizat…
owenv Apr 9, 2025
7319148
Simplify cross-platform hashing implementations (#388)
owenv Apr 9, 2025
caa4820
Mark stressConcurrentCancellation as requiring thread-safe working di…
jakepetroules Apr 9, 2025
7836ba6
Always record backtraces when checking for null builds
jakepetroules Apr 9, 2025
cb89d38
Pass through a couple missing parameters when creating derived build …
jakepetroules Apr 9, 2025
5701d61
Add initial support for generating non-Darwin test entrypoints (#390)
owenv Apr 10, 2025
01b04df
Improve the WebAssembly tests
jakepetroules Apr 10, 2025
fcb32fe
Fix issue causing QNX plugin to create "null.o" in the current directory
jakepetroules Apr 10, 2025
4e3b77e
Remove support for compiling with bitcode.
mhrawdon Apr 8, 2025
f13ab5a
Fix LD_EXPORT_GLOBAL_SYMBOLS when using swiftc as the linker driver (…
owenv Apr 10, 2025
519a4fc
Avoid nondeterministically clearing the build description manager's b…
jakepetroules Apr 10, 2025
0a6b2d5
Disable explicit module builds for the index arena
bnbarham Apr 10, 2025
fb00ef6
Remove workaround for executable files on Windows
jakepetroules Apr 10, 2025
a685e4d
Sources: add missing imports required by MemberImportVisibility
jakepetroules Apr 11, 2025
801e482
Tests: add missing imports required by MemberImportVisibility
jakepetroules Apr 11, 2025
be3cd5a
Opt the entire project into MemberImportVisibility
jakepetroules Apr 11, 2025
0810d2c
Update the language for 'Enabling the Swift language feature ...' war…
tshortli Apr 14, 2025
a6d6d13
[cas] Enable the CAS size limiting functionality for Swift caching
akyrtzi Apr 14, 2025
b91412e
Add freebsd to ProjectModel API (#408)
pmattos Apr 15, 2025
7a0f81a
Use `URL.homeDirectory` instead of `FileManager.homeDirectoryForCurre…
cwakamo Apr 15, 2025
4c10712
Simplify some settings definitions using -Xclang-linker (#403)
owenv Apr 15, 2025
f97263c
Annotate "$targetA is missing a dependency on $targetB" diagnostics w…
mirza-garibovic Apr 16, 2025
0891c39
Fix linker swiftmodule registration in incremental builds (#412)
owenv Apr 16, 2025
c66a20f
FilesBasedBuildPhaseTaskProducer: fix unused variable warning (#415)
owenv Apr 17, 2025
fcb6fc9
Add missing requireThreadSafeWorkingDirectory annotation to unitTestW…
jakepetroules Apr 17, 2025
172235d
Limit usage of CoreFoundation to macOS (#414)
owenv Apr 17, 2025
de925c6
[BuildOperation] Change the summary about the cache hit/miss metrics …
akyrtzi Apr 17, 2025
3be4320
CLIConnection tests: close output stream on shutdown
jakepetroules Apr 17, 2025
33cbda0
[CAS] Change the detailed caching diagnostic remarks to be notes instead
akyrtzi Apr 17, 2025
f974e0d
[Specs] Introduce `COMPILATION_CACHE_ENABLE_CACHING` for controlling …
akyrtzi Apr 1, 2025
ada40ac
Introduce LINKER_DRIVER build setting into the PIF generation model (…
cmcgee1024 Apr 21, 2025
e9ff528
Expand use of Win32Error
jakepetroules Apr 21, 2025
19cdeaa
[CAS] For compilation tasks, add an unintrusive cache hit/miss indicator
akyrtzi Apr 21, 2025
2f36148
Improve error handling around various Win32 APIs
jakepetroules Apr 23, 2025
ac358da
Ensure long paths are handled correctly in calls to Win32 APIs
jakepetroules Apr 19, 2025
db2620b
Expose LD_DONT_RUN_DEDUPLICATION setting to SwiftPM with correct cros…
owenv Apr 23, 2025
09d78a5
Merge remote-tracking branch 'origin/release/6.2' into owenv/update-6.2
owenv Apr 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ _[Put a one line description of your change into the PR title, please be specifi

_[Explain the context, and why you're making that change. What is the problem you're trying to solve.]_

_[Tests can be run by commenting `@swift-ci` test on the pull request, for more information see [this](https://github.com/swiftlang/swift-build/blob/main/README.md)]_
_[Tests can be run by commenting `@swift-ci test` on the pull request, for more information see [this](https://github.com/swiftlang/swift-build/blob/main/README.md)]_
17 changes: 13 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ func swiftSettings(languageMode: SwiftLanguageMode) -> [SwiftSetting] {
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("DeprecateApplicationMain"),
.enableUpcomingFeature("DisableOutwardActorInference"),
//.enableUpcomingFeature("DynamicActorIsolation"),
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("GlobalActorIsolatedTypesUsability"),
.enableUpcomingFeature("GlobalConcurrency"),
.enableUpcomingFeature("ImplicitOpenExistentials"),
.enableUpcomingFeature("ImportObjcForwardDeclarations"),
.enableUpcomingFeature("InferSendableFromCaptures"),
.enableUpcomingFeature("IsolatedDefaultValues"),
.enableUpcomingFeature("NonfrozenEnumExhaustivity"),
//.enableUpcomingFeature("RegionBasedIsolation"), // rdar://137809703

// Future Swift features
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("InternalImportsByDefault"),

.swiftLanguageMode(.v5),
Expand All @@ -51,6 +55,7 @@ func swiftSettings(languageMode: SwiftLanguageMode) -> [SwiftSetting] {
return [
// Future Swift features
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("InternalImportsByDefault"),

.swiftLanguageMode(.v6),
Expand Down Expand Up @@ -195,7 +200,6 @@ let package = Package(
"SWBCSupport",
"SWBLibc",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux, .openbsd, .android])),
.product(name: "SystemPackage", package: "swift-system", condition: .when(platforms: [.linux, .android, .windows])),
],
exclude: ["CMakeLists.txt"],
Expand Down Expand Up @@ -232,7 +236,14 @@ let package = Package(
swiftSettings: swiftSettings(languageMode: .v6)),
.target(
name: "SWBUniversalPlatform",
dependencies: ["SWBCore", "SWBMacro", "SWBUtil"],
dependencies: [
"SWBCore",
"SWBMacro",
"SWBUtil",
"SWBTaskConstruction",
"SWBTaskExecution",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
exclude: ["CMakeLists.txt"],
resources: [.process("Specs")],
swiftSettings: swiftSettings(languageMode: .v6)),
Expand Down Expand Up @@ -427,7 +438,6 @@ for target in package.targets {
// `SWIFTCI_USE_LOCAL_DEPS` configures if dependencies are locally available to build
if useLocalDependencies {
package.dependencies += [
.package(path: "../swift-crypto"),
.package(path: "../swift-driver"),
.package(path: "../swift-system"),
.package(path: "../swift-argument-parser"),
Expand All @@ -437,7 +447,6 @@ if useLocalDependencies {
}
} else {
package.dependencies += [
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0"..<"4.0.0"),
.package(url: "https://github.com/swiftlang/swift-driver.git", branch: "release/6.2"),
.package(url: "https://github.com/apple/swift-system.git", .upToNextMajor(from: "1.4.1")),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.3"),
Expand Down
22 changes: 1 addition & 21 deletions Plugins/cmake-smoke-test/cmake-smoke-test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ struct CMakeSmokeTest: CommandPlugin {
let swiftSystemURL = try findSiblingRepository("swift-system", swiftBuildURL: swiftBuildURL)
let swiftSystemBuildURL = context.pluginWorkDirectoryURL.appending(component: "swift-system")

let swiftAsn1URL = try findSiblingRepository("swift-asn1", swiftBuildURL: swiftBuildURL)
let swiftAsn1BuildURL = context.pluginWorkDirectoryURL.appending(component: "swift-asn1")

let swiftCryptoURL = try findSiblingRepository("swift-crypto", swiftBuildURL: swiftBuildURL)
let swiftCryptoBuildURL = context.pluginWorkDirectoryURL.appending(component: "swift-crypto")

let llbuildURL = try findSiblingRepository("llbuild", swiftBuildURL: swiftBuildURL)
let llbuildBuildURL = context.pluginWorkDirectoryURL.appending(component: "llbuild")

Expand All @@ -56,7 +50,7 @@ struct CMakeSmokeTest: CommandPlugin {
let swiftDriverURL = try findSiblingRepository("swift-driver", swiftBuildURL: swiftBuildURL)
let swiftDriverBuildURL = context.pluginWorkDirectoryURL.appending(component: "swift-driver")

for url in [swiftToolsSupportCoreBuildURL, swiftAsn1BuildURL, swiftCryptoBuildURL, swiftSystemBuildURL, llbuildBuildURL, swiftArgumentParserBuildURL, swiftDriverBuildURL, swiftBuildBuildURL] {
for url in [swiftToolsSupportCoreBuildURL, swiftSystemBuildURL, llbuildBuildURL, swiftArgumentParserBuildURL, swiftDriverBuildURL, swiftBuildBuildURL] {
try FileManager.default.createDirectory(at: url, withIntermediateDirectories: true)
}

Expand All @@ -69,8 +63,6 @@ struct CMakeSmokeTest: CommandPlugin {
"-DArgumentParser_DIR=\(swiftArgumentParserBuildURL.appending(components: "cmake", "modules").path())",
"-DLLBuild_DIR=\(llbuildBuildURL.appending(components: "cmake", "modules").path())",
"-DTSC_DIR=\(swiftToolsSupportCoreBuildURL.appending(components: "cmake", "modules").path())",
"-DSwiftASN1_DIR=\(swiftAsn1BuildURL.appending(components: "cmake", "modules").path())",
"-DSwiftCrypto_DIR=\(swiftCryptoBuildURL.appending(components: "cmake", "modules").path())",
"-DSwiftDriver_DIR=\(swiftDriverBuildURL.appending(components: "cmake", "modules").path())",
"-DSwiftSystem_DIR=\(swiftSystemBuildURL.appending(components: "cmake", "modules").path())"
]
Expand All @@ -87,18 +79,6 @@ struct CMakeSmokeTest: CommandPlugin {
try await Process.checkNonZeroExit(url: ninjaURL, arguments: [], workingDirectory: swiftToolsSupportCoreBuildURL)
print("Built swift-tools-support-core")

if hostOS != .macOS && hostOS != .windows {
print("Building swift-asn1")
try await Process.checkNonZeroExit(url: cmakeURL, arguments: sharedCMakeArgs + [swiftAsn1URL.path()], workingDirectory: swiftAsn1BuildURL)
try await Process.checkNonZeroExit(url: ninjaURL, arguments: [], workingDirectory: swiftAsn1BuildURL)
print("Built swift-asn1")

print("Building swift-crypto")
try await Process.checkNonZeroExit(url: cmakeURL, arguments: sharedCMakeArgs + [swiftCryptoURL.path()], workingDirectory: swiftCryptoBuildURL)
try await Process.checkNonZeroExit(url: ninjaURL, arguments: [], workingDirectory: swiftCryptoBuildURL)
print("Built swift-crypto")
}

if hostOS != .macOS {
print("Building swift-system")
try await Process.checkNonZeroExit(url: cmakeURL, arguments: sharedCMakeArgs + [swiftSystemURL.path()], workingDirectory: swiftSystemBuildURL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

public import SWBCore
import SWBUtil
import Foundation

/// A grouping strategy that groups all asset catalogs and all strings files that match sticker packs inside those asset catalogs.
@_spi(Testing) public final class ActoolInputFileGroupingStrategy: InputFileGroupingStrategy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import SWBCore
import SWBUtil
import SWBTaskConstruction
import SWBMacro

final class AppIntentsMetadataTaskProducer: PhasedTaskProducer, TaskProducer {

Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/CoreDataCompiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import SWBUtil
public import SWBCore
import SWBMacro

public final class CoreDataModelCompilerSpec : GenericCompilerSpec, SpecIdentifierType, @unchecked Sendable {
public static let identifier = "com.apple.compilers.model.coredata"
Expand Down
5 changes: 3 additions & 2 deletions Sources/SWBApplePlatform/CoreMLCompiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
public import SWBUtil
public import SWBCore
public import SWBMacro
import SWBProtocol

public struct DiscoveredCoreMLToolSpecInfo: DiscoveredCommandLineToolSpecInfo {
public let toolPath: Path
Expand Down Expand Up @@ -151,7 +152,7 @@ public final class CoreMLCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
// When the build setting is empty or is set to Automatic, then use an appropriate string based on the predominant source code language for the target.
if languageSettingValue.isEmpty || languageSettingValue == "Automatic" {
// Note that it would be pretty weird here to not have a configured target, or to have a target which is not a StandardTarget.
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? SWBCore.StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
switch predominantSourceCodeLanguage {
case .swift:
codegenLanguage = "Swift"
Expand Down Expand Up @@ -289,7 +290,7 @@ public final class CoreMLCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
}

guard
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
let outputPath = headerOutputPath,
target.headersBuildPhase != nil else { continue }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import SWBCore
import SWBUtil
import SWBTaskConstruction
import SWBMacro

final class DevelopmentAssetsTaskProducer: StandardTaskProducer, TaskProducer {
func generateTasks() async -> [any PlannedTask] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import SWBUtil
public import SWBCore
import SWBMacro

public final class InstrumentsPackageBuilderSpec: GenericCompilerSpec, SpecIdentifierType, @unchecked Sendable {
public static let identifier = "com.apple.compilers.instruments-package-builder"
Expand Down
8 changes: 5 additions & 3 deletions Sources/SWBApplePlatform/IntentsCompiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import SWBUtil
public import SWBCore
import SWBProtocol
import SWBMacro

/// Payload information for Intents tasks.
fileprivate struct IntentsTaskPayload: TaskPayload, Encodable {
Expand Down Expand Up @@ -122,7 +124,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
let outputDir = cbc.scope.evaluate(BuiltinMacros.DERIVED_FILE_DIR).join("IntentDefinitionGenerated").join(modelName).normalize()

guard
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
target.sourcesBuildPhase != nil,
let intentsCodegenVisibility = input.intentsCodegenVisibility else { return }

Expand All @@ -136,7 +138,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
// When the build setting is empty or is set to Automatic, then use an appropriate string based on the predominant source code language for the target.
if languageSettingValue.isEmpty || languageSettingValue == "Automatic" {
// Note that it would be pretty weird here to not have a configured target, or to have a target which is not a StandardTarget.
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
let predominantSourceCodeLanguage = (cbc.producer.configuredTarget?.target as? SWBCore.StandardTarget)?.predominantSourceCodeLanguage ?? .undefined
switch predominantSourceCodeLanguage {
case .swift:
codegenLanguage = "Swift"
Expand Down Expand Up @@ -236,7 +238,7 @@ public final class IntentsCompilerSpec : GenericCompilerSpec, SpecIdentifierType
}

guard
let target = cbc.producer.configuredTarget?.target as? BuildPhaseTarget,
let target = cbc.producer.configuredTarget?.target as? SWBCore.BuildPhaseTarget,
let outputPath = headerOutputPath,
target.headersBuildPhase != nil else { continue }

Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/MiGCompiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
public import SWBUtil
public import SWBCore
public import SWBMacro
import SWBProtocol

public struct DiscoveredMiGToolSpecInfo: DiscoveredCommandLineToolSpecInfo {
public let toolPath: Path
Expand Down
23 changes: 23 additions & 0 deletions Sources/SWBApplePlatform/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Foundation
import SWBTaskConstruction

@PluginExtensionSystemActor public func initializePlugin(_ manager: PluginManager) {
manager.register(AppleDeveloperDirectoryExtension(), type: DeveloperDirectoryExtensionPoint.self)
manager.register(ApplePlatformSpecsExtension(), type: SpecificationsExtensionPoint.self)
manager.register(ActoolInputFileGroupingStrategyExtension(), type: InputFileGroupingStrategyExtensionPoint.self)
manager.register(ImageScaleFactorsInputFileGroupingStrategyExtension(), type: InputFileGroupingStrategyExtensionPoint.self)
Expand All @@ -29,6 +30,12 @@ import SWBTaskConstruction
manager.register(AppleSettingsBuilderExtension(), type: SettingsBuilderExtensionPoint.self)
}

struct AppleDeveloperDirectoryExtension: DeveloperDirectoryExtension {
func fallbackDeveloperDirectory(hostOperatingSystem: OperatingSystem) async throws -> Path? {
try await hostOperatingSystem == .macOS ? Xcode.getActiveDeveloperDirectoryPath() : nil
}
}

struct TaskProducersExtension: TaskProducerExtension {

func createPreSetupTaskProducers(_ context: TaskProducerContext) -> [any TaskProducer] {
Expand Down Expand Up @@ -148,6 +155,10 @@ struct ActoolInputFileGroupingStrategyExtension: InputFileGroupingStrategyExtens
}
return ["actool": Factory()]
}

func fileTypesCompilingToSwiftSources() -> [String] {
return ["folder.abstractassetcatalog"]
}
}

struct ImageScaleFactorsInputFileGroupingStrategyExtension: InputFileGroupingStrategyExtension {
Expand All @@ -159,6 +170,10 @@ struct ImageScaleFactorsInputFileGroupingStrategyExtension: InputFileGroupingStr
}
return ["image-scale-factors": Factory()]
}

func fileTypesCompilingToSwiftSources() -> [String] {
return []
}
}

struct LocalizationInputFileGroupingStrategyExtension: InputFileGroupingStrategyExtension {
Expand All @@ -170,6 +185,10 @@ struct LocalizationInputFileGroupingStrategyExtension: InputFileGroupingStrategy
}
return ["region": Factory()]
}

func fileTypesCompilingToSwiftSources() -> [String] {
return []
}
}

struct XCStringsInputFileGroupingStrategyExtension: InputFileGroupingStrategyExtension {
Expand All @@ -181,6 +200,10 @@ struct XCStringsInputFileGroupingStrategyExtension: InputFileGroupingStrategyExt
}
return ["xcstrings": Factory()]
}

func fileTypesCompilingToSwiftSources() -> [String] {
return []
}
}

struct ApplePlatformInfoExtension: PlatformInfoExtension {
Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/RealityAssetsCompilerSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import Foundation
package import SWBCore
import SWBUtil
import SWBMacro

//---------------------
//
Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/ResMergerLinkerSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import SWBUtil
public import SWBCore
import SWBMacro

public final class ResMergerLinkerSpec : GenericLinkerSpec, SpecIdentifierType, @unchecked Sendable {
public static let identifier = "com.apple.pbx.linkers.resmerger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
Description = "OCUnit Test Bundle";
DefaultBuildSettings = {
WRAPPER_SUFFIX = "octest";
ENABLE_BITCODE = NO;
};
ProductReference = {
FileType = wrapper.cfbundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
Description = "OCUnit Test Bundle";
DefaultBuildProperties = {
WRAPPER_EXTENSION = "octest";
ENABLE_BITCODE = NO;
ENTITLEMENTS_REQUIRED = NO;
};
PackageTypes = (
Expand Down
5 changes: 0 additions & 5 deletions Sources/SWBApplePlatform/Specs/Embedded-Shared.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
Identifier = com.apple.build-system.native;
BasedOn = "default:com.apple.build-system.native";
Properties = (
{
Name = "ENABLE_BITCODE";
Type = Boolean;
DefaultValue = NO;
},
);
},
)
44 changes: 0 additions & 44 deletions Sources/SWBApplePlatform/Specs/watchOS Shared.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -117,50 +117,6 @@
BasedOn = "com.apple.product-type.app-extension";
},

// --- LLVM Compiler
{
_Domain = watchos-shared;
Type = Compiler;
Identifier = "com.apple.compilers.llvm.clang.1_0.compiler";
BasedOn = "default:com.apple.compilers.llvm.clang.1_0.compiler";
InputFileTypes = (
"sourcecode.c.c",
"sourcecode.c.objc",
"sourcecode.cpp.cpp",
"sourcecode.cpp.objcpp",
{
"FileType" = "sourcecode.asm";
"Condition" = "! $(ENABLE_BITCODE)";
"ErrorMessage" = "$(InputFileName): Assembly files are not supported for the $(PLATFORM_DISPLAY_NAME) platform (arch $(CURRENT_ARCH)).";
},
);
Options = (
// Generate bitcode options - not visible in the build settings.
{
Name = "CLANG_BITCODE_GENERATION_MODE";
Type = Enumeration;
Values = (
none,
marker,
bitcode,
);
DefaultValue = "$(BITCODE_GENERATION_MODE)";
Condition = "$(ENABLE_BITCODE)";
CommandLineArgs = {
none = ();
marker = (
"-fembed-bitcode-marker",
"-fno-gnu-inline-asm",
);
bitcode = (
"-fembed-bitcode",
"-fno-gnu-inline-asm",
);
};
},
);
},

// Actool ATV specific bits
{
_Domain = watchos-shared;
Expand Down
Loading