Created by: linzhp
Stop the build when there is no source file in a package. This provides better error message to help debugging. If we let the build continue, the final .a file will be empty, and the build only fails when compiling another package that imports the empty package, making the error message misleading.
@styurin @mkaczanowski Could you take a look?