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

Document alternative way of getting debug build #115

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions spin/cmds/meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,18 @@ def build(meson_args, jobs=None, clean=False, verbose=False, quiet=False):

MESON_ARGS are passed through e.g.:

spin build -- -Dpkg_config_path=/lib64/pkgconfig
spin build -- -Dpkg_config_path=/lib64/pkgconfig

The package is installed to build-install

By default meson-python does release builds, to be able to use a debugger, tell
meson to build in debug mode:
By default meson-python does release builds. To be able to use a debugger,
tell meson to build in debug mode:

spin build -- -Dbuildtype=debug
spin build -- -Dbuildtype=debug

or set CFLAGS appropriately:

CFLAGS="-O0 -g" spin build
"""
build_dir = "build"
setup_cmd = _meson_cli() + ["setup", build_dir, "--prefix=/usr"] + list(meson_args)
Expand Down
Loading