aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-08-08 16:03:19 -0700
committerStephen Hines <srhines@google.com>2013-08-08 16:03:19 -0700
commitd7a95265621a788a6de8c0c3a27a588d7c466f79 (patch)
treedb1fe46791b3ce7364173817422f48cb219b308d
parentd06574b6d2114b0c00fdf9e3fd292211031571b1 (diff)
downloadlibbcc-d7a95265621a788a6de8c0c3a27a588d7c466f79.tar.gz
Remove locking code on Windows builds.
Change-Id: Ia5656cf4feec3206e73ecc3e3b504146b0c66707
-rw-r--r--lib/Renderscript/RSCompilerDriver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Renderscript/RSCompilerDriver.cpp b/lib/Renderscript/RSCompilerDriver.cpp
index bf18667..dab6870 100644
--- a/lib/Renderscript/RSCompilerDriver.cpp
+++ b/lib/Renderscript/RSCompilerDriver.cpp
@@ -221,6 +221,9 @@ RSCompilerDriver::compileScript(RSScript &pScript,
return NULL;
}
+ // FIXME(srhines): Windows compilation can't use locking like this, but
+ // we also don't need to worry about concurrent writers of the same file.
+#ifndef USE_MINGW
//===--------------------------------------------------------------------===//
// Acquire the write lock for writing output object file.
//===--------------------------------------------------------------------===//
@@ -231,6 +234,7 @@ RSCompilerDriver::compileScript(RSScript &pScript,
pOutputPath, write_output_mutex.getErrorMessage().c_str());
return NULL;
}
+#endif
//===--------------------------------------------------------------------===//
// Open the output file for write.