summaryrefslogtreecommitdiff
path: root/xmake/scripts/base
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-11 16:19:30 +0800
committerruki <[email protected]>2015-06-11 16:19:30 +0800
commit76fd1ccaf43262df8fae3d9d3bfba1c2f0e04ca5 (patch)
treedff91d1b1692ab1153f46c7626134de0fa3fceb9 /xmake/scripts/base
parentef4fe60273da742248fe9111e9141df51185c204 (diff)
merge clang to gcc
Diffstat (limited to 'xmake/scripts/base')
-rw-r--r--xmake/scripts/base/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/scripts/base/main.lua b/xmake/scripts/base/main.lua
index 888c4d41a..c8ce0fe37 100644
--- a/xmake/scripts/base/main.lua
+++ b/xmake/scripts/base/main.lua
@@ -117,6 +117,11 @@ function main._init_project()
local options = xmake._OPTIONS
assert(options)
+ -- check the project file
+ if not os.isfile(xmake._PROJECT_FILE) then
+ return string.format("not found the project file: %s", xmake._PROJECT_FILE)
+ end
+
-- init the build directory
if options.buildir and path.is_absolute(options.buildir) then
options.buildir = path.relative(options.buildir, xmake._PROJECT_DIR)