Skip to content

Commit e244b76

Browse files
committed
Fix Tuist Project.swift build issues
- Fix libz SDK dependency name (use "z" not "libz" to avoid double prefix) - Add GCC_TREAT_WARNINGS_AS_ERRORS=NO and DEFINES_MODULE=NO overrides - Fix missing return in GraphDescription.cpp when OAG_OBJC_FOUNDATION=0
1 parent a8be65e commit e244b76

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Project.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ let processHeadersScript: TargetScript = .pre(
2020
let project = Project(
2121
name: "OpenAttributeGraph",
2222
settings: .settings(
23+
base: [
24+
"GCC_TREAT_WARNINGS_AS_ERRORS": "NO",
25+
],
2326
configurations: [
2427
.debug(name: .debug, xcconfig: "Configs/Common.xcconfig"),
2528
.release(name: .release, xcconfig: "Configs/Common.xcconfig"),
@@ -59,9 +62,13 @@ let project = Project(
5962
]),
6063
scripts: [processHeadersScript],
6164
dependencies: [
62-
.sdk(name: "libz", type: .library),
65+
.sdk(name: "z", type: .library),
6366
],
6467
settings: .settings(
68+
base: [
69+
"GCC_TREAT_WARNINGS_AS_ERRORS": "NO",
70+
"DEFINES_MODULE": "NO",
71+
],
6572
configurations: [
6673
.debug(name: .debug, xcconfig: "Configs/OpenAttributeGraph.xcconfig"),
6774
.release(name: .release, xcconfig: "Configs/OpenAttributeGraph.xcconfig"),

Sources/OpenAttributeGraphCxx/Graph/GraphDescription.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ CFTypeRef OAGGraphDescription(OAGGraphRef graph, CFDictionaryRef options) {
1616
OAG::precondition_failure("invalidated graph");
1717
}
1818
return OAG::Graph::description(&graph->context.get_graph(), (__bridge NSDictionary*)options);
19+
#else
20+
return nullptr;
1921
#endif
2022
}
2123

0 commit comments

Comments
 (0)