diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-23 11:10:49 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-23 11:12:22 +0700 |
commit | 443c7789afe003e4563dec22c0278650de40aee8 (patch) | |
tree | 1b3b3c59c8dc4b2311562f82ea28f25391e0cf77 /tools | |
parent | fe8c5821fce322bee6d334aa191baf3f3187d527 (diff) |
Better guessing for LLVM_ROOT.
On OS X, there is a system-wide clang that is the wrong version,
so the guessing goes wrong. Looking for llvm-dis is less likely
to go wrong and is also required by the build process.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index 6b5ad835..748b509c 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -111,7 +111,7 @@ else: config_file = config_file.replace('{{{ EMSCRIPTEN_ROOT }}}', __rootpath__) llvm_root = '/usr/bin' try: - llvm_root = os.path.dirname(Popen(['which', 'clang'], stdout=PIPE).communicate()[0].replace('\n', '')) + llvm_root = os.path.dirname(Popen(['which', 'llvm-dis'], stdout=PIPE).communicate()[0].replace('\n', '')) except: pass config_file = config_file.replace('{{{ LLVM_ROOT }}}', llvm_root) |