summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/srcenv.profile6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/srcenv.profile b/scripts/srcenv.profile
index 46cb17234..1fe3af35b 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`/core/build/xmake` ]; then
+ alias xmake=`pwd`/core/build/xmake
+else
+ alias xmake=`pwd`/core/src/demo/demo.b
+fi
xmake --version
xmake l xmake.programdir
xmake l xmake.programfile