Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13993617
D11627.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
837 B
Referenced Files
None
Subscribers
None
D11627.diff
View Options
diff --git a/src/moduleutils/PhutilLibraryMapBuilder.php b/src/moduleutils/PhutilLibraryMapBuilder.php
--- a/src/moduleutils/PhutilLibraryMapBuilder.php
+++ b/src/moduleutils/PhutilLibraryMapBuilder.php
@@ -427,6 +427,14 @@
$this->log("Loading symbol cache...\n");
$symbol_cache = $this->loadSymbolCache();
+ // If the XHPAST binary is not up-to-date, build it now. Otherwise,
+ // `phutil_symbols.php` will attempt to build the binary and will fail
+ // miserably because it will be trying to build the same file multiple
+ // times in parallel.
+ if (!PhutilXHPASTBinary::isAvailable()) {
+ PhutilXHPASTBinary::build();
+ }
+
// Build out the symbol analysis for all the files in the library. For
// each file, check if it's in cache. If we miss in the cache, do a fresh
// analysis.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 24, 12:07 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712038
Default Alt Text
D11627.diff (837 B)
Attached To
Mode
D11627: Build XHPAST earlier in the stack
Attached
Detach File
Event Timeline
Log In to Comment