diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 10:08:22 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 10:08:22 -0700 |
commit | ade7864b5d424b961313773b4487c0798e0bebed (patch) | |
tree | 8fedc902302c8c4c6bd4db64a3804ec696974c43 /tools | |
parent | 02194bcc84104fad8f0d0ff6d5ff6f4312dd8d5e (diff) | |
parent | 443c7789afe003e4563dec22c0278650de40aee8 (diff) |
Merge pull request #1086 from waywardmonkeys/llvm-root-guessing
Better guessing for LLVM_ROOT.
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) |