Skip to content

Commit 68aee84

Browse files
committed
chore: move HarmonyOS clang wrappers to scripts/ohos/
1 parent 4a4ea63 commit 68aee84

6 files changed

Lines changed: 7 additions & 9 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ docs/*.pdf
5050
# Local dev scripts and temp files
5151
*.sh
5252
*.cmd
53-
!ohos-clang.sh
54-
!ohos-clangxx.sh
5553
!scripts/**
5654
!.github/scripts/**
5755
test.txt

docs/HarmonyOS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,28 @@ CMake toolchain variables for `aarch64-unknown-linux-ohos`.
4646

4747
## Compiler Wrappers
4848

49-
For ad-hoc compiler calls, use the root wrappers. They read the same
49+
For ad-hoc compiler calls, use the wrappers in `scripts/ohos/`. They read the same
5050
`OHOS_NATIVE_SDK` variable and do not contain local paths.
5151

5252
Windows PowerShell:
5353

5454
```powershell
55-
.\ohos-clang.ps1 --version
56-
.\ohos-clangxx.ps1 --version
55+
.\scripts\ohos\ohos-clang.ps1 --version
56+
.\scripts\ohos\ohos-clangxx.ps1 --version
5757
```
5858

5959
Linux or macOS:
6060

6161
```bash
62-
sh ./ohos-clang.sh --version
63-
sh ./ohos-clangxx.sh --version
62+
sh ./scripts/ohos/ohos-clang.sh --version
63+
sh ./scripts/ohos/ohos-clangxx.sh --version
6464
```
6565

66-
If you want to run the POSIX wrappers directly as `./ohos-clang.sh`, make them
66+
If you want to run the POSIX wrappers directly as `./scripts/ohos/ohos-clang.sh`, make them
6767
executable first:
6868

6969
```bash
70-
chmod +x ./ohos-clang.sh ./ohos-clangxx.sh
70+
chmod +x ./scripts/ohos/ohos-clang.sh ./scripts/ohos/ohos-clangxx.sh
7171
```
7272

7373
## Cargo Config

0 commit comments

Comments
 (0)