Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My local project config #12

Open
tgross35 opened this issue Nov 15, 2023 · 2 comments
Open

My local project config #12

tgross35 opened this issue Nov 15, 2023 · 2 comments

Comments

@tgross35
Copy link

tgross35 commented Nov 15, 2023

I keep deleting it, here is my launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch with LLDB",
            "type": "lldb",
            "request": "launch",
            "program": "${workspaceFolder}/../build-mariadb-server-debug/sql/mariadbd",
            "args": [
                "--datadir=${workspaceFolder}/../data",
                "--socket=${workspaceFolder}/../mdb.sock",
                "--plugin-dir=${workspaceFolder}/../build-mariadb-server-debug/rust_target/debug",
                "--plugin-maturity=experimental",
                "--loose-clevis-key-management-tang-server=localhost:11697",
                "--gdb"
            ]
        }
    ]
}
@tgross35
Copy link
Author

Note that before this, need to run:

scripts/mariadb-install-db \
    --srcdir=... \
    --datadir=... \
    --builddir=...

With matching arguments

@tgross35 tgross35 changed the title Launch.json file My local project config Dec 2, 2023
@tgross35
Copy link
Author

tgross35 commented Dec 2, 2023

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 .)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant