From 76fd1ccaf43262df8fae3d9d3bfba1c2f0e04ca5 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jun 2015 16:19:30 +0800 Subject: merge clang to gcc --- xmake/scripts/base/main.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/scripts/base/main.lua') 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) -- cgit v1.3.1