[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smoothing Xcode integration
From: |
Uxio Prego |
Subject: |
Re: smoothing Xcode integration |
Date: |
Sat, 6 Oct 2018 14:42:35 +0200 |
On StackOverflow I've been given some directions on getting Xcode
to correctly use a cross platform Makefile, however haven't been
completely successful so far.
I can add a target wrapping the Makefile, but haven't passed the
environment variables to the `make` execution successfully yet,
for it to remove the _line_ preprocessor directives.
Also I haven't figured out yet how to configure that Make target as
a build step before the program target itself.
> On 6 Oct 2018, at 10:47, Hans Åberg <address@hidden> wrote:
>
>
>> On 5 Oct 2018, at 21:29, Uxio Prego <address@hidden> wrote:
>>
>> How would you detect Xcode from GNU Make?
>
> Is this for an external Makefile project?
I probably don't really understand this question.
Can't you eventually achieve the same results via either the
"Cross-platform" > "External Build System" wizard or
(e.g.) the "macOS" > "Command Line Tool"?
>
>> I would want to run `sed 's/#line/\/\/#line/'` on the generated parser
>> in order for it not to show as assembly during debugging. I think
>> Xcode has some kind of non honoring to the way `#line` works,
>
> You can disable using %no-lines, see the Bison manual, but it works fine in
> Xcode 10.
Nice to know, however maybe the `sed` use is more convenient.
The default flow must be not to manipulate _line_ preprocessor
directives.
If I added `%no-lines`, would GDB debugging break?
I'd try once I have a Linux box at hand again...
So unless nothing breaks, injecting a `%no-lines` line in the Bison
doc, I see unnecessarily complicated compared to optionally run
a simple `sed` substitution on the generated parser.
>
Thank you,