Commit 98427ffe authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[torque] Add error when using -m32 and pointer compression

This should catch potential build file misconfigurations.

Change-Id: I1bd1f808a4758e0d3b71c862cfc34e7b01e6fbd9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2827894
Auto-Submit: Dan Elphick <delphick@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73976}
parent 76ea1662
......@@ -33,7 +33,12 @@ int WrappedMain(int argc, const char** argv) {
} else if (argument == "-v8-root") {
options.v8_root = std::string(argv[++i]);
} else if (argument == "-m32") {
#ifdef V8_COMPRESS_POINTERS
std::cerr << "Pointer compression is incompatible with -m32.\n";
base::OS::Abort();
#else
options.force_32bit_output = true;
#endif
} else if (argument == "-annotate-ir") {
options.annotate_ir = true;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment