Skip to content

Commit 3d38650

Browse files
committed
build: specify configuration for debug/release builds
1 parent 3f67847 commit 3d38650

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ license-file = "LICENSE.md"
1818
readme = "README.md"
1919
edition = "2021"
2020
publish = false
21+
22+
[profile.dev]
23+
split-debuginfo = "unpacked"
24+
debug = 2
25+
26+
[profile.release]
27+
opt-level = 1
28+
split-debuginfo = "packed"
29+
debug = 1

Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ workspace = false
113113
category = "Build"
114114
description = "Builds the Swift package"
115115
command = "swift"
116-
args = ["build", "--package-path", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/swift/LiveViewNative", "--scratch-path", "${CARGO_TARGET_DIR}/swift/.build"]
116+
args = ["build", "--configuration", "${CARGO_MAKE_PROFILE}", "--package-path", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/swift/LiveViewNative", "--scratch-path", "${CARGO_TARGET_DIR}/swift/.build", "${@}"]
117117
dependencies = ["build-xcframework"]
118118

119119
[tasks.build-xcframework]

0 commit comments

Comments
 (0)