aboutsummaryrefslogtreecommitdiffstats
path: root/scons/llvm.py
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-19 14:09:01 +0100
committerEric Engestrom <[email protected]>2017-09-25 12:05:47 +0100
commitbb66af95a7e13f433466f612eded97b01e48b6fc (patch)
tree7b1d10b7c03c1ce004e7fb5b3da9c7880eca7ddb /scons/llvm.py
parenteb2efbba78ea503c45f1228745cd51219c084a92 (diff)
scons: use python3-compatible exceptions
These changes were generated using python's `2to3` tool. Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'scons/llvm.py')
-rw-r--r--scons/llvm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index eaa2ecbe026..79118be371d 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -50,7 +50,7 @@ def generate(env):
llvm_dir = None
else:
if not os.path.isdir(llvm_dir):
- raise SCons.Errors.InternalError, "Specified LLVM directory not found"
+ raise SCons.Errors.InternalError("Specified LLVM directory not found")
if env['debug']:
llvm_subdir = 'Debug'
@@ -61,7 +61,7 @@ def generate(env):
if not os.path.isdir(llvm_bin_dir):
llvm_bin_dir = os.path.join(llvm_dir, 'bin')
if not os.path.isdir(llvm_bin_dir):
- raise SCons.Errors.InternalError, "LLVM binary directory not found"
+ raise SCons.Errors.InternalError("LLVM binary directory not found")
env.PrependENVPath('PATH', llvm_bin_dir)