Eosio build darwin: extensive validation#2879
Conversation
Merging master into eosio_build_darwin
| if [ -f "${PWD}/CMakeCache.txt" ]; then | ||
| printf "\\n\\tPlease remove file %s/CMakeCache.txt before building EOS.IO.\\n \\tExiting now.\\n\\n" "${PWD}" | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
I thought people used the eosio_build.sh script to rebuild their eosio.io after an update. This prevents eosio_build.sh from working for an existing checkout with a previous build.
There was a problem hiding this comment.
This file is required in directory /path/to/eos/build/
If this file is located in the eos/ directory CMake will write its build files to the eos/ directory and not the build directory which will cause:
cd build/
make -j"${CPU_CORE}"
to error out i.e.
make: *** No targets specified and no makefile found. Stop.
There was a problem hiding this comment.
Hmm. I build in source, but I guess build script does out of source. ok.
| brew install --force pkgconfig | ||
| brew unlink pkgconfig && brew link --force pkgconfig | ||
| printf "\\n\\tChecking MongoDB C++ driver installation.\\n" | ||
| if [ ! -e "/usr/local/lib/libmongocxx-static.a" ]; then |
There was a problem hiding this comment.
Note the slim branch does not have a mongodb plugin and will likely not have one for June.
There was a problem hiding this comment.
I have $( git branch | grep * ) writing the current branch to stdout.
I can add a check in to install mongo when necessary. We need to define what that condition/branch is.
There was a problem hiding this comment.
It will be master branch soon.
Added check for cmake cache file in eos/ doc root.
Added extensive command validation error checking in darwin build.