[pypy-commit] pypy default: Hide the error about missing '__int128'.
arigo
noreply at buildbot.pypy.org
Thu Sep 6 13:02:53 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r57172:f6a3c3e48716
Date: 2012-09-06 13:02 +0200
http://bitbucket.org/pypy/pypy/changeset/f6a3c3e48716/
Log: Hide the error about missing '__int128'.
diff --git a/pypy/rpython/lltypesystem/rffi.py b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -440,8 +440,8 @@
'void*'] # generic pointer type
# This is a bit of a hack since we can't use rffi_platform here.
-try:
- sizeof_c_type('__int128')
+try:
+ sizeof_c_type('__int128', ignore_errors=True)
TYPES += ['__int128']
except CompilationError:
pass
diff --git a/pypy/rpython/tool/rfficache.py b/pypy/rpython/tool/rfficache.py
--- a/pypy/rpython/tool/rfficache.py
+++ b/pypy/rpython/tool/rfficache.py
@@ -10,7 +10,7 @@
from pypy.rpython.lltypesystem import lltype
from pypy.tool.gcc_cache import build_executable_cache
-def ask_gcc(question, add_source=""):
+def ask_gcc(question, add_source="", ignore_errors=False):
from pypy.translator.platform import platform
includes = ['stdlib.h', 'stdio.h', 'sys/types.h']
if platform.name != 'msvc':
@@ -32,7 +32,7 @@
c_file = udir.join("gcctest.c")
c_file.write(str(c_source) + '\n')
eci = ExternalCompilationInfo()
- return build_executable_cache([c_file], eci)
+ return build_executable_cache([c_file], eci, ignore_errors=ignore_errors)
def sizeof_c_type(c_typename, **kwds):
return sizeof_c_types([c_typename], **kwds)[0]
More information about the pypy-commit
mailing list