Remove unsafe flags in Package.swift (#9)
remove unsafe flags Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
This commit is contained in:
+2
-11
@@ -44,11 +44,6 @@ let package = Package(
|
|||||||
"include/onnxruntime_training.h"],
|
"include/onnxruntime_training.h"],
|
||||||
cxxSettings: [
|
cxxSettings: [
|
||||||
.define("SPM_BUILD"),
|
.define("SPM_BUILD"),
|
||||||
.unsafeFlags(["-std=c++17",
|
|
||||||
"-fobjc-arc-exceptions"
|
|
||||||
]),
|
|
||||||
], linkerSettings: [
|
|
||||||
.unsafeFlags(["-ObjC"]),
|
|
||||||
]),
|
]),
|
||||||
.testTarget(name: "OnnxRuntimeBindingsTests",
|
.testTarget(name: "OnnxRuntimeBindingsTests",
|
||||||
dependencies: ["OnnxRuntimeBindings"],
|
dependencies: ["OnnxRuntimeBindings"],
|
||||||
@@ -61,11 +56,6 @@ let package = Package(
|
|||||||
path: "extensions",
|
path: "extensions",
|
||||||
cxxSettings: [
|
cxxSettings: [
|
||||||
.define("ORT_SWIFT_PACKAGE_MANAGER_BUILD"),
|
.define("ORT_SWIFT_PACKAGE_MANAGER_BUILD"),
|
||||||
.unsafeFlags(["-std=c++17",
|
|
||||||
"-fobjc-arc-exceptions"
|
|
||||||
]),
|
|
||||||
], linkerSettings: [
|
|
||||||
.unsafeFlags(["-ObjC"]),
|
|
||||||
]),
|
]),
|
||||||
.testTarget(name: "OnnxRuntimeExtensionsTests",
|
.testTarget(name: "OnnxRuntimeExtensionsTests",
|
||||||
dependencies: ["OnnxRuntimeExtensions", "OnnxRuntimeBindings"],
|
dependencies: ["OnnxRuntimeExtensions", "OnnxRuntimeBindings"],
|
||||||
@@ -73,7 +63,8 @@ let package = Package(
|
|||||||
resources: [
|
resources: [
|
||||||
.copy("Resources/decode_image.onnx")
|
.copy("Resources/decode_image.onnx")
|
||||||
]),
|
]),
|
||||||
]
|
],
|
||||||
|
cxxLanguageStandard: .cxx17
|
||||||
)
|
)
|
||||||
|
|
||||||
// Add the ORT iOS Pod archive as a binary target.
|
// Add the ORT iOS Pod archive as a binary target.
|
||||||
|
|||||||
Reference in New Issue
Block a user