Skip to content

Commit

Permalink
switch to win32
Browse files Browse the repository at this point in the history
  • Loading branch information
h2o-ops committed Aug 27, 2018
1 parent b36e620 commit 308ed5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Expand Up @@ -159,7 +159,7 @@ def get_rpath():
@memoize()
def get_cc(with_isystem=False):
cc = os.path.join(get_llvm(), "bin", "clang++")
if sys.platform == "win64":
if sys.platform == "win32":
cc += ".exe"
if not os.path.exists(cc):
raise SystemExit("Cannot find Clang compiler at `%s`" % cc)
Expand Down Expand Up @@ -240,7 +240,7 @@ def get_extra_compile_flags():
# objects is not only legal, but also unavoidable since this is the
# only kind of object that can be passed to a template...

if sys.platform == "win64":
if sys.platform == "win32":
flags += ["/W4"]
else:
flags += [
Expand Down Expand Up @@ -349,11 +349,11 @@ def process_args(cmd):
llvmlite_req = (">=0.20.0,<0.21.0" if llvmver == "LLVM4" else
">=0.21.0,<0.23.0" if llvmver == "LLVM5" else
">=0.23.0 " if llvmver == "LLVM6" else None)
if sys.platform == "win64":
if sys.platform == "win32":
clang += ".exe"

for ff in [llvm_config, clang, libsdir, includes]:
if ff == llvm_config and sys.platform == "win64":
if ff == llvm_config and sys.platform == "win32":
# There is no llvm-config on Windows:
# https://github.com/ihnorton/Clang.jl/issues/183
continue
Expand All @@ -377,7 +377,7 @@ def process_args(cmd):
# Compute runtime libpath with respect to bundled LLVM libraries
if sys.platform == "darwin":
extra_libs = ["libomp.dylib"]
elif sys.platform == "win64":
elif sys.platform == "win32":
extra_libs = ["libgomp-1.dll"]
else:
extra_libs = ["libomp.so", "libc++.so.1", "libc++abi.so.1"]
Expand Down

0 comments on commit 308ed5c

Please sign in to comment.