From 302894e404b3279dbe8ef75e8b7d620121b3dc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Thu, 2 Nov 2017 10:19:12 +0100 Subject: [PATCH] Vim settings - "IDE" builds in debug mode --- .vim.local/scripts/build-config | 12 ++++++++++++ .vim.local/scripts/vimmake.build | 2 +- .vim.local/scripts/vimmake.clean | 2 +- .vim.local/scripts/vimmake.rebuild | 4 ++-- .vim.local/scripts/vimmake.test | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .vim.local/scripts/build-config diff --git a/.vim.local/scripts/build-config b/.vim.local/scripts/build-config new file mode 100644 index 0000000..aa7f24c --- /dev/null +++ b/.vim.local/scripts/build-config @@ -0,0 +1,12 @@ +# vim: syntax=make + +BUILD_STATIC_LIB = n +BUILD_DYNAMIC_LIB = y +DEBUG = y +OPTIMIZE = n +BUILD_TESTS = y + +OUTDIR = output + +export BUILD_STATIC_LIB BUILD_DYNAMIC_LIB DEBUG OPTIMIZE BUILD_TESTS +export OUTDIR diff --git a/.vim.local/scripts/vimmake.build b/.vim.local/scripts/vimmake.build index e23cbe2..543189c 100755 --- a/.vim.local/scripts/vimmake.build +++ b/.vim.local/scripts/vimmake.build @@ -1,2 +1,2 @@ #!/bin/sh -make -j 8 all +make -j 8 all CONFIG=.vim.local/scripts/build-config diff --git a/.vim.local/scripts/vimmake.clean b/.vim.local/scripts/vimmake.clean index 20fc175..689e273 100755 --- a/.vim.local/scripts/vimmake.clean +++ b/.vim.local/scripts/vimmake.clean @@ -1,2 +1,2 @@ #!/bin/sh -make fullclean +make fullclean CONFIG=.vim.local/scripts/build-config diff --git a/.vim.local/scripts/vimmake.rebuild b/.vim.local/scripts/vimmake.rebuild index 5d01929..569113b 100755 --- a/.vim.local/scripts/vimmake.rebuild +++ b/.vim.local/scripts/vimmake.rebuild @@ -1,3 +1,3 @@ #!/bin/sh -make fullclean -make -j 8 all +make fullclean CONFIG=.vim.local/scripts/build-config +make -j 8 all CONFIG=.vim.local/scripts/build-config diff --git a/.vim.local/scripts/vimmake.test b/.vim.local/scripts/vimmake.test index a73482c..ea3098d 100755 --- a/.vim.local/scripts/vimmake.test +++ b/.vim.local/scripts/vimmake.test @@ -1,5 +1,5 @@ #!/bin/bash -if make -j 8 all; then +if make -j 8 all CONFIG=.vim.local/scripts/build-config; then if [ "$VIM_RELDIR" = "tests" ] && [ "$VIM_FILEEXT" = ".cc" ]; then if [ -f "output/fast/test-$VIM_FILENOEXT" ]; then LD_LIBRARY_PATH=./output \