Skip to content

Commit

Permalink
fix: fix cli init with wrong config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Dec 3, 2023
1 parent a7142cf commit 547da85
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions example/array/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/arraybuffer/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/basic/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/either/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/external/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/hello/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"
6 changes: 3 additions & 3 deletions example/tokio_rt/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.aarch64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/aarch64-unknown-linux-ohos-clang.sh"

[target.armv7-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/armv7-unknown-linux-ohos-clang.sh"

[target.x86_64-unknown-linux-ohos]
ar = "$OH_SDK_HOME/native/llvm/bin/llvm-ar"
ar = "$OHOS_NDK_HOME/native/llvm/bin/llvm-ar"
linker = "scripts/x86_64-unknown-linux-ohos-clang.sh"

0 comments on commit 547da85

Please sign in to comment.