Open tgross35 opened 11 months ago
Note that before this, need to run:
scripts/mariadb-install-db \
--srcdir=... \
--datadir=... \
--builddir=...
With matching arguments
And my current config file:
#!/bin/sh
cmake ../mariadb-server \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true \
-DCMAKE_BUILD_TYPE=Debug \
-DRUN_ABI_CHECK=NO \
-DPLUGIN_MROONGA=NO \
-DPLUGIN_ROCKSDB=NO \
-DPLUGIN_SPIDER=NO \
-DPLUGIN_SPHINX=NO \
-DPLUGIN_TOKUDB=NO \
-G Ninja
If building in a different dir (build-mdb-server
for me) just need to symlink this output to the source directory
ln -s $(realpath ../build-mdb-server/compile_commands.json) $(realpath .)
I keep deleting it, here is my launch.json: