X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fandroidarchiver.cpp;h=58cbefa9f9ea8abbf03195f3f951e074ead5ec71;hb=266697cea92aed098fff31c1ddd4a4bfab3a683f;hp=71bc5ffb120ffbab86191b884e6d60c2b518fef5;hpb=d2e3935376f922f05a44ff90c4ec707639c68ac8;p=builder.git diff --git a/source/androidarchiver.cpp b/source/androidarchiver.cpp index 71bc5ff..58cbefa 100644 --- a/source/androidarchiver.cpp +++ b/source/androidarchiver.cpp @@ -4,5 +4,10 @@ AndroidArchiver::AndroidArchiver(Builder &b, const Architecture &a, const AndroidNdk &ndk): GnuArchiver(b, a) { - set_command((ndk.get_bin_dir()/command).str()); + if(ndk.get_root_dir().empty()) + problems.push_back("Android NDK not found"); + else if(ndk.get_bin_dir().empty()) + problems.push_back("Android NDK toolchain not found"); + else + set_command((ndk.get_bin_dir()/command).str()); }