diff options
author | Jens Peters <jp7677@gmail.com> | 2022-06-26 10:31:23 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2022-06-26 10:32:30 +0300 |
commit | dee0a069bd4239dd3afba51cd4a6e5f6281c15bb (patch) | |
tree | a70f788eda17701b5e25739b0a0ddeaaa8d10d18 | |
parent | 30d07163adcf1ce8bf6172e5f2be5f0d812d2d22 (diff) |
meta: Advertise the same build structure used for CI
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -1,3 +1,4 @@ +build builddir .idea/** .vscode/** @@ -91,11 +91,11 @@ The actual unit tests can be run with `nvapi64-tests.exe [@unit-tests]` to valid Producing a debug build and starting a debugging session with the test suite can be achieved with the following snippet: ```bash -meson --cross-file "./build-win64.txt" --buildtype "debugoptimized" -Denable_tests=True builddir && cd builddir -meson compile +meson --cross-file "./build-win64.txt" --buildtype "debugoptimized" -Denable_tests=True build/dev +meson compile -C build/dev -ln -sr src/nvapi64.dll tests/nvapi64.dll # to ensure that nvapi64-tests.exe finds nvapi64.dll -DXVK_LOG_LEVEL=none DXVK_NVAPI_LOG_LEVEL=none WINEDEBUG=-all WINEDLLOVERRIDES=nvapi64=n winedbg --gdb tests/nvapi64-tests.exe [@all] +ln -sr build/dev/src/nvapi64.dll build/dev/tests/nvapi64.dll # to ensure that nvapi64-tests.exe finds nvapi64.dll +DXVK_LOG_LEVEL=none DXVK_NVAPI_LOG_LEVEL=none WINEDEBUG=-all WINEDLLOVERRIDES=nvapi64=n winedbg --gdb build/dev/tests/nvapi64-tests.exe [@all] ``` Once the debug session has started, use `c` to start/continue execution and a.o. `bt` to show a proper stacktrace after a segmentation fault. |