From a1fce8bb9f7e5099a9b3234a66bb6602a1a23774 Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Thu, 4 Jul 2019 17:02:26 +0200 Subject: [PATCH] dub: clean mimalloc's build folder before compiling it again --- dub.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dub.json b/dub.json index 3dc3551..d966fa9 100644 --- a/dub.json +++ b/dub.json @@ -11,7 +11,7 @@ "name" : "standard", "preBuildCommands-posix" : [ "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir -p build && cd build && cmake -DMI_OVERRIDE=OFF .. && make" + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF .. && make" ], "sourceFiles": [ "$PACKAGE_DIR/neomimalloc/source/mimalloc/build/libmimalloc.a" @@ -21,7 +21,7 @@ "name" : "secure", "preBuildCommands-posix" : [ "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir -p build && cd build && cmake -DMI_OVERRIDE=OFF -DMI_SECURE=ON .. && make" + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=OFF -DMI_SECURE=ON .. && make" ], "sourceFiles": [ "$PACKAGE_DIR/neomimalloc/source/mimalloc/build/libmimalloc-secure.a" @@ -31,7 +31,7 @@ "name" : "override-malloc", "preBuildCommands-posix" : [ "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir -p build && cd build && cmake -DMI_OVERRIDE=ON .. && make" + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=ON .. && make" ], "sourceFiles": [ "$PACKAGE_DIR/neomimalloc/source/mimalloc/build/libmimalloc.a" @@ -41,7 +41,7 @@ "name" : "override-malloc-secure", "preBuildCommands-posix" : [ "cd $PACKAGE_DIR && git clone --recursive https://github.com/ErnyTech/neomimalloc || true", - "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && mkdir -p build && cd build && cmake -DMI_OVERRIDE=ON -DMI_SECURE=ON .. && make" + "cd $PACKAGE_DIR/neomimalloc/source/mimalloc && rm -rf build && mkdir build && cd build && cmake -DMI_OVERRIDE=ON -DMI_SECURE=ON .. && make" ], "sourceFiles": [ "$PACKAGE_DIR/neomimalloc/source/mimalloc/build/libmimalloc-secure.a"