GNU bug report logs -
#42761
28.0.50; [feature/native-comp] allow customizing command line/driver options?
Previous Next
Reported by: Andreas Fuchs <asf <at> boinkor.net>
Date: Sat, 8 Aug 2020 14:51:01 UTC
Severity: normal
Found in version 28.0.50
Done: Andrea Corallo <akrl <at> sdf.org>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 42761 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Wed, Aug 19, 2020 at 11:41 AM Andrea Corallo <akrl <at> sdf.org> wrote:
> Okay if the libgccjit feature is not available we raise an error, but
> how the user is supposed to test for this feature without compiling?
>
> 'comp-libgccjit-version' starts working only if gcc_jit_version_major is
> available otherwise return nil, and I added gcc_jit_version_major into
> GCC10 :/
>
> We need to offer a way to the user to check for that before going for
> compilation. The only idea I've at the moment is that we expose a
> function to set these instead of using 'comp-native-driver-options'.
>
Ah! That's a good point about users being unable to tell if their options
will work until they try to compile.
I would like to keep the driver-option setting interface as a variable
holding a list, as that still allows users to edit them with the
emacs-provided functions to do so. With a function accessor, we'd have to
add functions to add/remove/map over/etc the options, which emacs already
provides with `add-to-list' and friends.
I think we could expose a predicate
`comp-native-driver-options-available-p' that'll return t if the necessary
facility exists.
For some extra credit, maybe we could even have that predicate test whether
a given set of driver options has a chance of succeeding (I guess that this
would have to attempt a no-op compile to exercise the compiler->linker
chain). A predicate to test for compatibility would be the nicest and would
fit the bill well, though.
--
Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.