From f3efa1f672f98edf2c3083c557694e8bc2f43a9e Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Fri, 5 Jul 2019 15:06:11 +0200 Subject: [PATCH] dub: clean the temporary folder instead of just the build folder --- dub.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dub.json b/dub.json index cf9817f..33c9cd8 100644 --- a/dub.json +++ b/dub.json @@ -10,8 +10,8 @@ { "name" : "standard", "preBuildCommands-posix" : [ - "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF .. && make" + "cd $PACKAGE_DIR && rm -rf neomimalloc && git clone --recursive https://github.com/ErnyTech/neomimalloc", + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF .. && make" ], "libs-posix" : [ ":libmimalloc.a" @@ -23,8 +23,8 @@ { "name" : "secure", "preBuildCommands-posix" : [ - "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF -DMI_SECURE=ON .. && make" + "cd $PACKAGE_DIR && rm -rf neomimalloc && git clone --recursive https://github.com/ErnyTech/neomimalloc", + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF -DMI_SECURE=ON .. && make" ], "libs-posix" : [ ":ibmimalloc-secure.a" @@ -36,8 +36,8 @@ { "name" : "override-malloc", "preBuildCommands-posix" : [ - "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=ON .. && make" + "cd $PACKAGE_DIR && rm -rf neomimalloc && git clone --recursive https://github.com/ErnyTech/neomimalloc", + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir build && cd build && cmake -DMI_OVERRIDE=ON .. && make" ], "libs-posix" : [ ":libmimalloc.a" @@ -49,8 +49,8 @@ { "name" : "override-malloc-secure", "preBuildCommands-posix" : [ - "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=ON -DMI_SECURE=ON .. && make" + "cd $PACKAGE_DIR && rm -rf neomimalloc && git clone --recursive https://github.com/ErnyTech/neomimalloc", + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir build && cd build && cmake -DMI_OVERRIDE=ON -DMI_SECURE=ON .. && make" ], "libs-posix" : [ ":ibmimalloc-secure.a"