Skip to content

Commit 5decec4

Browse files
repair macOS building
1 parent 51358c6 commit 5decec4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Package.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ let phpLib = ProcessInfo.processInfo.environment["PHP_LIB_ROOT"]!
1212
let includePHPXCFramework = true
1313
// On other platforms, use the default relative path.
1414
let phpSrc = "build/php-src"
15+
let phpLib = ""
1516
#endif
1617

1718
var targets: [Target] = [
@@ -65,10 +66,10 @@ var targets: [Target] = [
6566
], .when(platforms: [.windows])),
6667

6768
// --- C settings for other platforms ---
68-
// .headerSearchPath(phpSrc, .when(platforms: [.linux, .macOS, .iOS])),
69-
// .headerSearchPath("\(phpSrc)/main", .when(platforms: [.linux, .macOS, .iOS])),
70-
// .headerSearchPath("\(phpSrc)/Zend", .when(platforms: [.linux, .macOS, .iOS])),
71-
// .headerSearchPath("\(phpSrc)/TSRM", .when(platforms: [.linux, .macOS, .iOS])),
69+
.headerSearchPath(phpSrc, .when(platforms: [.linux, .macOS, .iOS])),
70+
.headerSearchPath("\(phpSrc)/main", .when(platforms: [.linux, .macOS, .iOS])),
71+
.headerSearchPath("\(phpSrc)/Zend", .when(platforms: [.linux, .macOS, .iOS])),
72+
.headerSearchPath("\(phpSrc)/TSRM", .when(platforms: [.linux, .macOS, .iOS])),
7273
]
7374
),
7475

0 commit comments

Comments
 (0)