You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 58ef42e68a..f2c9b0dc4a 100644
--- a/python/servo/build_commands.py+++ b/python/servo/build_commands.py@@ -645,6 +645,9 @@ class MachCommands(CommandBase):
# given on the command line can override it
opts = ["-Ztimings=info"] + opts
+ if "-Zsanitizer" in env.get("RUSTFLAGS", ""):+ opts += ["-Zbuild-std", "--target", target or host]+
if very_verbose:
print(["Calling", "cargo", "build"] + opts)
for key in env:
If this turns out to be useful, it might be nice to add .servobuild support for enabling a sanitizer.
There's a subtlety that took me forever to discover - since the --target flag is required, the binary ends up in target/[target]/servo, so ./mach run ends up running the wrong binary.
Activity
jdm commentedon Jul 7, 2020
There's a subtlety that took me forever to discover - since the --target flag is required, the binary ends up in target/[target]/servo, so
./mach runends up running the wrong binary.Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
Auto merge of #27474 - jdm:asan, r=<try>
ede1998 commentedon Sep 2, 2024
@jdm Just stumbled over this issue. Maybe this can be resolved with #31429? Or would you also be interested to have other sanitizers easily available?
jdm commentedon Sep 2, 2024
It would be interesting to see if UBsan works in servo, but we can track that in another issue.