Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools:compiler
llvm9
lldb-swig-4.1.0-build-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lldb-swig-4.1.0-build-fix.patch of Package llvm9
Backport of 81fc5f7909a4ef5a8d4b5da2a10f77f7cb01ba63 From: serge-sans-paille <sguelton@redhat.com> Date: Thu, 29 Sep 2022 21:48:38 +0200 Subject: [PATCH] [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS C++11 made the use of these macro obsolete, see https://sourceware.org/bugzilla/show_bug.cgi?id=15366 As a side effect this prevents https://github.com/swig/swig/issues/2193. Differential Revision: https://reviews.llvm.org/D134877 --- lldb/scripts/Python/prepare_binding_Python.py | 2 -- lldb/lldb/scripts/lldb.swig | 3 --- 2 files changed, 5 deletions(-) diff --git a/lldb/scripts/Python/prepare_binding_Python.py b/lldb/scripts/Python/prepare_binding_Python.py index 31aef6c..91d48b8 100644 --- a/lldb/scripts/Python/prepare_binding_Python.py +++ b/lldb/scripts/Python/prepare_binding_Python.py @@ -207,8 +207,6 @@ def do_swig_rebuild(options, dependency_file, config_build_dir, settings): "-threads", "-I" + os.path.normpath(os.path.join(options.src_root, "include")), "-I" + os.path.curdir, - "-D__STDC_LIMIT_MACROS", - "-D__STDC_CONSTANT_MACROS" ] + darwin_extras + deps_args diff --git a/lldb/scripts/lldb.swig b/lldb/scripts/lldb.swig index 3cad53a..bd37de0 100644 --- a/lldb/scripts/lldb.swig +++ b/lldb/scripts/lldb.swig @@ -177,9 +177,6 @@ def lldb_iter(obj, getsize, getelem): /* Various liblldb typedefs that SWIG needs to know about. */ #define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */ -/* The ISO C99 standard specifies that in C++ implementations limit macros such - as INT32_MAX should only be defined if __STDC_LIMIT_MACROS is. */ -#define __STDC_LIMIT_MACROS %include "stdint.i" %include "lldb/lldb-defines.h"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor