diff options
| author | ruki <[email protected]> | 2017-08-03 11:15:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-08-03 11:15:46 +0800 |
| commit | bcb21e7b854ee16baf2c0b992ded6b4e7cefb76c (patch) | |
| tree | f1276b9715ff5e363bfac14bd848f15c761e0367 /docs/README.md | |
| parent | b40bc697d9ce4e20836b60941daabfeaae080b28 (diff) | |
add cross platform and custom platform name
Diffstat (limited to 'docs/README.md')
| -rw-r--r-- | docs/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md index 44790f541..b29f8d708 100644 --- a/docs/README.md +++ b/docs/README.md @@ -293,11 +293,27 @@ $ xmake ##### Cross Compilation +For linux platform: + ```bash $ xmake f -p linux --sdk=/usr/local/arm-linux-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-] $ xmake ``` +Fro other cross platform: + +```bash +$ xmake f -p cross --sdk=/usr/local/arm-xxx-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-] +$ xmake +``` + +For custem cross platform (`is_plat("myplat")`): + +```bash +$ xmake f -p myplat --sdk=/usr/local/arm-xxx-gcc/ [--toolchains=/sdk/bin] [--cross=arm-linux-] +$ xmake +``` + | Configuration Option | Description | | ---------------------------- | -------------------------------------------- | | [--sdk](#-sdk) | Set the sdk root directory of toolchains | |
