Skip to content

Commit

Permalink
buildSDK.sh script, build the sdk without encountering target problems (
Browse files Browse the repository at this point in the history
#1063)

* Script that allows to build the sdk without any issue

* target independent solution

* Update CONTRIBUTING.md

* better more scalable solution

* Revert "Update CONTRIBUTING.md"

This reverts commit 5cc2001.

* Update Tools/Sources/BuildSDK.swift

Co-authored-by: Stefan Ceriu <[email protected]>

---------

Co-authored-by: Stefan Ceriu <[email protected]>
  • Loading branch information
Velin92 and stefanceriu authored Jun 12, 2023
1 parent 8483f6e commit 0f358a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/Sources/BuildSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ struct BuildSDK: ParsableCommand {

/// Build the Rust SDK as an XCFramework with the debug profile.
func buildFramework() throws {
var buildCommand = "cargo xtask swift build-framework"
// unset fixes an issue where swift compilation prevents building for targets other than macOS X
var buildCommand = "unset SDKROOT && cargo xtask swift build-framework"
buildCommand.append(" --profile \(profile.rawValue)")
if let target {
buildCommand.append(" --only-target \(target.rawValue)")
Expand Down

0 comments on commit 0f358a6

Please sign in to comment.