mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Rather than relying on dead-code elimination to remove the function in production builds, it is better if it is never included in the first place. On OpenHarmony we never want to include these files into the binary, since we always bundle the test files into the `.hap` as part of the build process. The original comment got the condition inverted and in all normal builds the function will be checked as usual. There shouldn't be any additional value in checking the correctness of `resources_for_tests()` in production builds. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> |
||
---|---|---|
.. | ||
build.rs | ||
Cargo.toml | ||
lib.rs | ||
resources.rs |