Author: mattip <[email protected]>
Branch:
Changeset: r71361:ad12f8418f24
Date: 2014-05-07 09:26 +0300
http://bitbucket.org/pypy/pypy/changeset/ad12f8418f24/
Log: fix translation on msvc after 3484aaa1e858
diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py
--- a/rpython/translator/c/genc.py
+++ b/rpython/translator/c/genc.py
@@ -753,6 +753,8 @@
def add_extra_files(eci):
srcdir = py.path.local(__file__).join('..', 'src')
+ _MSVC = eci.platform.name == 'msvc'
+
files = [
srcdir / 'entrypoint.c', # ifdef PYPY_STANDALONE
srcdir / 'allocator.c', # ifdef PYPY_STANDALONE
@@ -769,6 +771,8 @@
]
if _CYGWIN:
files.append(srcdir / 'cygwin_wait.c')
+ if _MSVC:
+ files.append(srcdir / 'asm_msvc.c')
return eci.merge(ExternalCompilationInfo(separate_module_files=files))
diff --git a/rpython/translator/c/src/asm_msvc.c
b/rpython/translator/c/src/asm_msvc.c
--- a/rpython/translator/c/src/asm_msvc.c
+++ b/rpython/translator/c/src/asm_msvc.c
@@ -1,5 +1,6 @@
#ifdef PYPY_X86_CHECK_SSE2
#include <intrin.h>
+#include <stdio.h>
void pypy_x86_check_sse2(void)
{
int features;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit