Skip to content

Commit ed51541

Browse files
YUNQIUGUOrachguo
andauthored
Remove unsafe flags in Package.swift (#9)
remove unsafe flags Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
1 parent 4d2b60a commit ed51541

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Package.swift

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ let package = Package(
4444
"include/onnxruntime_training.h"],
4545
cxxSettings: [
4646
.define("SPM_BUILD"),
47-
.unsafeFlags(["-std=c++17",
48-
"-fobjc-arc-exceptions"
49-
]),
50-
], linkerSettings: [
51-
.unsafeFlags(["-ObjC"]),
5247
]),
5348
.testTarget(name: "OnnxRuntimeBindingsTests",
5449
dependencies: ["OnnxRuntimeBindings"],
@@ -61,19 +56,15 @@ let package = Package(
6156
path: "extensions",
6257
cxxSettings: [
6358
.define("ORT_SWIFT_PACKAGE_MANAGER_BUILD"),
64-
.unsafeFlags(["-std=c++17",
65-
"-fobjc-arc-exceptions"
66-
]),
67-
], linkerSettings: [
68-
.unsafeFlags(["-ObjC"]),
6959
]),
7060
.testTarget(name: "OnnxRuntimeExtensionsTests",
7161
dependencies: ["OnnxRuntimeExtensions", "OnnxRuntimeBindings"],
7262
path: "swift/OnnxRuntimeExtensionsTests",
7363
resources: [
7464
.copy("Resources/decode_image.onnx")
7565
]),
76-
]
66+
],
67+
cxxLanguageStandard: .cxx17
7768
)
7869

7970
// Add the ORT iOS Pod archive as a binary target.

0 commit comments

Comments
 (0)