From: Alexander Turenko <alexander.turenko@tarantool.org> To: Cyrill Gorcunov <gorcunov@gmail.com> Cc: tml <tarantool-patches@dev.tarantool.org>, Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH] crash: allow to build on non x86-64 machines Date: Tue, 29 Dec 2020 19:34:12 +0300 [thread overview] Message-ID: <20201229163412.pxmuqzjobsai24s5@tkn_work_nb> (raw) In-Reply-To: <20201228193622.652307-1-gorcunov@gmail.com> On Mon, Dec 28, 2020 at 10:36:22PM +0300, Cyrill Gorcunov via Tarantool-patches wrote: > The general purpose registers were optional earlier > lets make them optional back allowing the code to > be compiled on non x86-64 machines. > > Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> > --- > Guys, obviously I didn't test on real non x86 machine. > But since we've been notifying from public chat that > people are trying to compile tarantool on arm lets > make a quick fix. > > branch gorcunov/crash-cross-compile LGTM aside one non-critical comment below. Pushed to master. CCed Kirill. > > src/lib/core/crash.c | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > > diff --git a/src/lib/core/crash.c b/src/lib/core/crash.c > index 8397603bc..5b50ed3c4 100644 > --- a/src/lib/core/crash.c > +++ b/src/lib/core/crash.c > @@ -30,10 +30,11 @@ > /** Use strlcpy with destination as an array */ > #define strlcpy_a(dst, src) strlcpy(dst, src, sizeof(dst)) > > -#ifdef TARGET_OS_LINUX > -#ifndef __x86_64__ > -# error "Non x86-64 architectures are not supported" > +#if defined(TARGET_OS_LINUX) && defined(__x86_64__) > +# define HAS_GREG > #endif AFAIU, we usually set such flags from the build system (cmake) and just use it in the code. It make the code a bit more clean.
next prev parent reply other threads:[~2020-12-29 16:33 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-28 19:36 Cyrill Gorcunov 2020-12-29 16:15 ` Alexander V. Tikhonov 2020-12-29 16:34 ` Alexander Turenko [this message] 2020-12-29 17:02 ` Cyrill Gorcunov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201229163412.pxmuqzjobsai24s5@tkn_work_nb \ --to=alexander.turenko@tarantool.org \ --cc=gorcunov@gmail.com \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH] crash: allow to build on non x86-64 machines' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox