Skip to content

Commit

Permalink
Add tracy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Feb 13, 2025
1 parent 7e65b98 commit 5edb53b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[profile.rel-with-deb-info]
inherits = "release"
debug-assertions = true
debug = "line-tables-only"
debug = "line-tables-only"

[profile.tracy]
inherits = "release"
5 changes: 4 additions & 1 deletion cmake/Rust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ if(NOT RUST_BUILD_TYPE)
set(RUST_BUILD_TYPE ${CMAKE_BUILD_TYPE})
endif()

if(RUST_BUILD_TYPE STREQUAL "Debug")
if(TRACY_ENABLE)
set(RUST_CARGO_FLAGS_INT --profile tracy)
set(RUST_BUILD_SUBDIR_CONFIGURATION tracy)
elseif(RUST_BUILD_TYPE STREQUAL "Debug")
set(RUST_BUILD_SUBDIR_CONFIGURATION debug)
elseif(RUST_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(RUST_CARGO_FLAGS_INT --profile rel-with-deb-info)
Expand Down

0 comments on commit 5edb53b

Please sign in to comment.