[pypy-svn] r50652 - pypy/dist/pypy/rpython/lltypesystem/module
bigdog at codespeak.net
bigdog at codespeak.net
Tue Jan 15 20:58:20 CET 2008
Author: bigdog
Date: Tue Jan 15 20:58:20 2008
New Revision: 50652
Modified:
pypy/dist/pypy/rpython/lltypesystem/module/ll_math.py
Log:
add check for windows before adding /m to the link line. Only add /m to the link line of non-windows platforms.
Modified: pypy/dist/pypy/rpython/lltypesystem/module/ll_math.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/module/ll_math.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/module/ll_math.py Tue Jan 15 20:58:20 2008
@@ -1,6 +1,8 @@
import math
import errno
import py
+import sys
+
from pypy.rpython.lltypesystem import lltype, rffi
from pypy.tool.sourcetools import func_with_new_name
from pypy.rlib import rposix
@@ -56,7 +58,11 @@
else:
raise ValueError("math domain error")
-eci = ExternalCompilationInfo(libraries=['m'])
+if sys.platform[:3] == "win":
+ eci = ExternalCompilationInfo(libraries=[])
+else:
+ eci = ExternalCompilationInfo(libraries=['m'])
+
def new_unary_math_function(name):
c_func = rffi.llexternal(name, [rffi.DOUBLE], rffi.DOUBLE,
More information about the Pypy-commit
mailing list