Skip to content

Commit

Permalink
Add LLVM_TBLGEN_PATH to use alternative LLVM build on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
sklam committed Jul 25, 2014
1 parent 1b1727d commit ba85b3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm-config-win32.py
@@ -1,4 +1,5 @@
import re
import os
import sys
from distutils.spawn import find_executable
from os.path import abspath, dirname, isfile, join
Expand All @@ -7,7 +8,8 @@


def find_llvm_tblgen():
path = find_executable('llvm-tblgen')
frompath = os.environ.get('LLVM_TBLGEN_PATH')
path = find_executable('llvm-tblgen', path=frompath)
if path is None:
sys.exit('Error: could not locate llvm-tblgen')
return path
Expand Down

0 comments on commit ba85b3c

Please sign in to comment.