emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44010: closed (Per-compilation C files)


From: GNU bug Tracking System
Subject: bug#44010: closed (Per-compilation C files)
Date: Thu, 15 Oct 2020 21:10:02 +0000

Your message dated Thu, 15 Oct 2020 15:09:37 -0600
with message-id <202010152109.09FL9bmE002192@freefriends.org>
and subject line Re: bug#44010: Per-compilation C files
has caused the debbugs.gnu.org bug report #44010,
regarding Per-compilation C files
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
44010: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44010
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Per-compilation C files Date: Thu, 15 Oct 2020 13:06:19 +0100
I've recently started using automake with Vala; it works very well! I'm particularly impressed that the "make dist" rules include the C files, so that the builder doesn't need a Vala compiler.

There's one nit: I want to make multiple .c files from the same .vala file, analogous to the way that you can make multiple .o files from the same .c file, and it doesn't seem to work: automake generates two sets of rules for the same .c file instead.

The use case is a Vala file directly translated from a C file, which contains a test bracketed with #if TEST … #endif.

In the C version of the project I have:

TESTS = estr
estr_CPPFLAGS = …
estr_LDADD = …

as well as

zile_SOURCES = … estr.c …

for the main program, and for the test program, automake generates a rule for estr-estr.$(OBJEXT).

In the Vala version, I have

TESTS = estr
estr_SOURCES = estr.vala # so that automake doesn't try to just compile estr.c
estr_VALAFLAGS = …
estr_CPPFLAGS = …
estr_LDFLAGS = …

as well as

zile_SOURCE = … estr.vala …

A quick look at `automake.in` suggests that the problem is that this intelligence applies specifically to object files, rather than to arbitrary compilation steps?

--

--- End Message ---
--- Begin Message --- Subject: Re: bug#44010: Per-compilation C files Date: Thu, 15 Oct 2020 15:09:37 -0600
Hi Reuben,

    > Note that currently, you cannot use per-target ø*_VALAFLAGSù (*note
    > Renamed Objects::) to produce different C files from one Vala source
    > file.

Glad you found that.

Unfortunately I have no meaningful clue about Vala. So I can install
patches but that's about it. Sorry. Maybe others here could help more.

I found some long-ago patches (not for this particular issue) from a
previous contributor (Daniel Espinosa), which surely worked at the time
they were written, but now break things. And Daniel stopped replying to
my mail. Sorry to be so vague, but memory is failing. If you want to
take a look, I can dig them up.

Meanwhile, closed this one as you suggest. --thanks, karl.



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]