aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter.lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-09-06 16:52:39 +0200
committerGitHub <noreply@github.com>2022-09-06 07:52:39 -0700
commit6e3a69b4cf5c526443b96cf857847d6c3b0586d8 (patch)
tree602b150b47a6849800bba9954de82ca2b738b025 /runtime/lua/vim/treesitter.lua
parent87e037e26cfd53c3c34ac9029a8833023af60a56 (diff)
downloadrneovim-6e3a69b4cf5c526443b96cf857847d6c3b0586d8.tar.gz
rneovim-6e3a69b4cf5c526443b96cf857847d6c3b0586d8.tar.bz2
rneovim-6e3a69b4cf5c526443b96cf857847d6c3b0586d8.zip
build: consistently set build type regardless of generator or platform #19760
Change the default build type to always be Debug, and allow only four predefined build types: Debug, Release, RelWithDebInfo and MinRelSize. Furthermore, flags meant for single-configuration generator (make, ninja) will not be used for multi-configuration generators (visual studio, Xcode), and flags meant for multi-configuration generators will not be used for single-configuration generators. This will allow Debug builds to be built with MSVC which requires that all dependencies are also built with the Debug build type to avoid runtime library mismatch. The correct way to specify build type (for example Release) for single-configuration generators (Make and Ninja) is to run cmake -B build -D CMAKE_BUILD_TYPE=Release cmake --build build while for multi-configuration generators (Visual Studio, Xcode and Ninja Multi-Config) is to run cmake -B build cmake --build build --config Release Passing CMAKE_BUILD_TYPE for multi-config generators will now not only not be used, but also generate a warning for the user. Co-authored-by: dundargoc <gocundar@gmail.com>
Diffstat (limited to 'runtime/lua/vim/treesitter.lua')
0 files changed, 0 insertions, 0 deletions