Funny clang behaviour
Torbjörn Granlund
tg at gmplib.org
Tue Feb 18 12:23:33 UTC 2020
nisse at lysator.liu.se (Niels Möller) writes:
I wonder why we have an -I flag pointing to tests/mpz. We don't have any
header files there. Is a generic "-I." added somewhere ? Looking in
Makefile.in, I see
$ grep -- -I tests/mpz/Makefile.in
DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests
The -I$(top...)... things should be no problem. So I'd guess it's the
-I. at am__isrc@
What's @am__isrc@? Is there a way to tell automake to omit it in
DEFAULT_INCLUDES?
I don't know much about auto*, unfortunately.
For the case which fails for the GMP nightbuilds, the source directory
and the build directory are separate. It sounds like am_isrc has
something to do with sources, but maybe I am naive in the interpretation
here. The hardwired "." seems quite strange.
(If you want to check if that -I. at am__isrc@ is he culprit, I assume
adding some gremlin before it would do? -I.BLAH. at am__isrc@
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-devel
mailing list