diff options
| author | ruki <[email protected]> | 2020-01-19 09:37:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-01-19 09:37:14 +0800 |
| commit | 3509342134d24e31940a8ad71066a764ba664d89 (patch) | |
| tree | 7eff9d690a8b3d34cd98fcf6a3f9085d35ee2516 /scripts/srcenv.profile | |
| parent | 6500e9b88e33a0c8b6c25b1471783c340ffc318b (diff) | |
improve self-build with xmake.lua
Diffstat (limited to 'scripts/srcenv.profile')
| -rw-r--r-- | scripts/srcenv.profile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/srcenv.profile b/scripts/srcenv.profile index 46cb17234..9a29d7324 100644 --- a/scripts/srcenv.profile +++ b/scripts/srcenv.profile @@ -1,6 +1,10 @@ # cd projectdir export XMAKE_PROGRAM_DIR=`pwd`/xmake -alias xmake=`pwd`/core/src/demo/demo.b +if [ -f `pwd`/build/xmake ]; then + alias xmake=`pwd`/build/xmake +else + alias xmake=`pwd`/core/src/demo/demo.b +fi xmake --version xmake l xmake.programdir xmake l xmake.programfile |
