0d40f6a759
Summary: Memgraph's executable target is unnecessarily complicated by having a name which depends on the commit hash and build type. It is now renamed to simply 'memgraph', while the executable output uses the encoding of commit hash and build type as the name. This simplifies the dependency handling in cmake, where now the full path to the executable can be easily obtained by using the generator expression: `$<TARGET_FILE:memgraph>`. In addition to the above simplification, memgraph_link_target is now replaced with a post build step on memgraph target itself. This guarantees that the symlink always exists after building the executable, as well as simplify the make invocation. The invocation now boils down to `make memgraph` instead of `make memgraph_link_target`. Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1043
28 lines
790 B
Plaintext
28 lines
790 B
Plaintext
# WARNING: do not run this script without defining THREADS!
|
|
# If THREADS isn't defined then this script will call 'make -j'.
|
|
# From the manpage: "If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously."
|
|
# That means that the whole build will be started simultaneously and IT WILL CRASH YOUR COMPUTER!
|
|
|
|
cd ../..
|
|
|
|
TIMEOUT=600 ./init
|
|
bash -c "doxygen Doxyfile >/dev/null 2>/dev/null"
|
|
|
|
cd build
|
|
cmake -DTOOLS=ON ..
|
|
TIMEOUT=1000 make -j$THREADS
|
|
|
|
cd ..
|
|
mkdir build_release
|
|
cd build_release
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=release ..
|
|
TIMEOUT=1000 make -j$THREADS memgraph memgraph__macro_benchmark memgraph__stress
|
|
|
|
# Install tools, because they may be needed to run some benchmarks and tests.
|
|
cd ../tools
|
|
./setup
|
|
|
|
cd apollo
|
|
./generate debug
|