mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Some changes to help with profiling and cleaning up aliases in .cargo/config. Removed incremental override since incremental is no longer turned off by default in rustc. Remove -Zuntable-options from several aliases because the --profile option is now stable. Added shader-from-source feature to aliases for voxygen that turn off the default features
This commit is contained in:
parent
1aed60ed19
commit
5df3d60e95
@ -4,19 +4,20 @@ rustflags = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
|
# tools
|
||||||
cmd-doc-gen = "run --features=bin_cmd_doc_gen --bin cmd_doc_gen"
|
cmd-doc-gen = "run --features=bin_cmd_doc_gen --bin cmd_doc_gen"
|
||||||
csv-export = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv_export"
|
csv-export = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv_export"
|
||||||
csv-import = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv_import"
|
csv-import = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv_import"
|
||||||
test-server = "run --bin veloren-server-cli --no-default-features"
|
# server-cli
|
||||||
tracy-server = "-Zunstable-options run --bin veloren-server-cli --no-default-features --features tracy,simd --profile no_overflow"
|
|
||||||
tracy-world-server = "-Zunstable-options run --bin veloren-server-cli --features tracy,simd --profile no_overflow"
|
|
||||||
tracy-world-server-releasedebuginfo = "-Zunstable-options run --bin veloren-server-cli --features tracy,simd --profile releasedebuginfo"
|
|
||||||
test-voxygen = "run --bin veloren-voxygen --no-default-features --features simd,egui-ui"
|
|
||||||
tracy-voxygen = "-Zunstable-options run --bin veloren-voxygen --no-default-features --features tracy,simd,egui-ui --profile no_overflow"
|
|
||||||
server = "run --bin veloren-server-cli"
|
server = "run --bin veloren-server-cli"
|
||||||
dbg-voxygen = "run --bin veloren-voxygen -Zunstable-options --profile debuginfo"
|
test-server = "run --bin veloren-server-cli --no-default-features simd"
|
||||||
|
tracy-server = "run --bin veloren-server-cli --no-default-features --features tracy,simd --profile no_overflow"
|
||||||
|
tracy-world-server = "run --bin veloren-server-cli --features tracy,simd --profile no_overflow"
|
||||||
|
tracy-world-server-debuginfo = "run --bin veloren-server-cli --features tracy,simd --profile no_overflow_debuginfo"
|
||||||
|
tracy-world-server-releasedebuginfo = "run --bin veloren-server-cli --features tracy,simd --profile releasedebuginfo"
|
||||||
|
# voxygen
|
||||||
|
test-voxygen = "run --bin veloren-voxygen --no-default-features --features simd,egui-ui,shaderc-from-source"
|
||||||
|
tracy-voxygen = "run --bin veloren-voxygen --no-default-features --features tracy,simd,egui-ui,shaderc-from-source --profile no_overflow"
|
||||||
|
dbg-voxygen = "run --bin veloren-voxygen --profile debuginfo"
|
||||||
|
# misc
|
||||||
swarm = "run --bin swarm --features client/bin_bot,client/tick_network --"
|
swarm = "run --bin swarm --features client/bin_bot,client/tick_network --"
|
||||||
|
|
||||||
|
|
||||||
[env]
|
|
||||||
RUSTC_FORCE_INCREMENTAL = "1"
|
|
||||||
|
@ -64,6 +64,11 @@ opt-level = 3
|
|||||||
[profile.no_overflow.package."veloren-voxygen-anim"]
|
[profile.no_overflow.package."veloren-voxygen-anim"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
|
# this profile is for profiling with using the no_overflow profile, since release can take signifcant times to build.
|
||||||
|
[profile.no_overflow_debuginfo]
|
||||||
|
inherits = 'no_overflow'
|
||||||
|
debug = 1
|
||||||
|
|
||||||
# this profile is used for veloren releases, compile time doesn't matter
|
# this profile is used for veloren releases, compile time doesn't matter
|
||||||
# we need stacktraces, light debug information, as much checks as possible
|
# we need stacktraces, light debug information, as much checks as possible
|
||||||
# I would like to put it in a seperate `official_release` target, but that doesnt share caches with `cargo test` and `cargo bench`
|
# I would like to put it in a seperate `official_release` target, but that doesnt share caches with `cargo test` and `cargo bench`
|
||||||
|
Loading…
Reference in New Issue
Block a user