summaryrefslogtreecommitdiffstats
path: root/src/dex2oat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dex2oat.cc')
-rw-r--r--src/dex2oat.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index 613ba67..747b613 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -478,10 +478,6 @@ int dex2oat(int argc, char** argv) {
bool dump_stats = kIsDebugBuild;
bool dump_timings = kIsDebugBuild;
-#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED < 1060
- thread_count = 1;
-#endif
-
for (int i = 0; i < argc; i++) {
const StringPiece option(argv[i]);
bool log_options = false;
@@ -556,6 +552,12 @@ int dex2oat(int argc, char** argv) {
}
}
+#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ // Something is broken on Mac OS 10.5, and we don't have direct access to any machines running it.
+ // Restricting dex2oat to a single thread on Mac OS 10.5 appears to be a workaround.
+ thread_count = 1;
+#endif
+
if (oat_filename.empty() && oat_fd == -1) {
Usage("Output must be supplied with either --oat-file or --oat-fd");
}