unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Remarks about commit 2c82d4ad10de8
@ 2019-12-16 15:13 Mathieu Othacehe
  2019-12-16 17:44 ` Brett Gilio
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2019-12-16 15:13 UTC (permalink / raw)
  To: Brett Gilio; +Cc: Guix-devel


Hello Brett,

I have a few remarks on the aforementioned commit.

> +       (list (string-append "-DCMAKE_CXX_FLAGS='-isystem "
> +                            (assoc-ref %build-inputs "gcc")
> +                            "/include/c++'"))))

Why is this needed? The following snippet in clang-from-llvm isn't enough?

--8<---------------cut here---------------start------------->8---
;; Make clang look for libstdc++ in the right
;; location.
(("LibStdCXXIncludePathCandidates\\[\\] = \\{")
 (string-append
  "LibStdCXXIncludePathCandidates[] = { \"" gcc "/include/c++\","))
--8<---------------cut here---------------end--------------->8---

> +     (inputs
>       `(("clang" ,clang)
> -       ("llvm" ,llvm)))
> +       ("ncurses" ,ncurses)))
> +    (native-inputs
> +     `(("rapidjson" ,rapidjson)

Rapidjson is an input (even if ccls is not linked against because its a
header-only library).

> +       ("gcc" ,gcc)))

This shouldn't be needed as it is an implicit input.

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Remarks about commit 2c82d4ad10de8
  2019-12-16 15:13 Remarks about commit 2c82d4ad10de8 Mathieu Othacehe
@ 2019-12-16 17:44 ` Brett Gilio
  2019-12-16 20:06   ` Brett Gilio
  0 siblings, 1 reply; 3+ messages in thread
From: Brett Gilio @ 2019-12-16 17:44 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: Guix-devel


I think you are correct. I likely made a mistake. We should revert the change.

Thanks!

Dec 16, 2019 9:13:31 AM Mathieu Othacehe <m.othacehe@gmail.com>:

> 
> Hello Brett,
> 
> I have a few remarks on the aforementioned commit.
> 
> 
> > + (list (string-append "-DCMAKE_CXX_FLAGS='-isystem "
> > + (assoc-ref %build-inputs "gcc")
> > + "/include/c++'"))))
> > 
> 
> Why is this needed? The following snippet in clang-from-llvm isn't enough?
> 
> --8<---------------cut here---------------start------------->8---
> ;; Make clang look for libstdc++ in the right
> ;; location.
> (("LibStdCXXIncludePathCandidates\\[\\] = \\{")
> (string-append
> "LibStdCXXIncludePathCandidates[] = { \"" gcc "/include/c++\","))
> --8<---------------cut here---------------end--------------->8---
> 
> 
> > + (inputs
> > `(("clang" ,clang)
> > - ("llvm" ,llvm)))
> > + ("ncurses" ,ncurses)))
> > + (native-inputs
> > + `(("rapidjson" ,rapidjson)
> > 
> 
> Rapidjson is an input (even if ccls is not linked against because its a
> header-only library).
> 
> 
> > + ("gcc" ,gcc)))
> > 
> 
> This shouldn't be needed as it is an implicit input.
> 
> Thanks,
> 
> Mathieu
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Remarks about commit 2c82d4ad10de8
  2019-12-16 17:44 ` Brett Gilio
@ 2019-12-16 20:06   ` Brett Gilio
  0 siblings, 0 replies; 3+ messages in thread
From: Brett Gilio @ 2019-12-16 20:06 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: Guix-devel

Brett Gilio <brettg@posteo.net> writes:

> I think you are correct. I likely made a mistake. We should revert the change.
>
> Thanks!
>
> Dec 16, 2019 9:13:31 AM Mathieu Othacehe <m.othacehe@gmail.com>:
>
>> 
>> Hello Brett,
>> 
>> I have a few remarks on the aforementioned commit.
>> 
>> 
>> > + (list (string-append "-DCMAKE_CXX_FLAGS='-isystem "
>> > + (assoc-ref %build-inputs "gcc")
>> > + "/include/c++'"))))
>> > 
>> 
>> Why is this needed? The following snippet in clang-from-llvm isn't enough?
>> 
>> --8<---------------cut here---------------start------------->8---
>> ;; Make clang look for libstdc++ in the right
>> ;; location.
>> (("LibStdCXXIncludePathCandidates\\[\\] = \\{")
>> (string-append
>> "LibStdCXXIncludePathCandidates[] = { \"" gcc "/include/c++\","))
>> --8<---------------cut here---------------end--------------->8---
>> 
>> 
>> > + (inputs
>> > `(("clang" ,clang)
>> > - ("llvm" ,llvm)))
>> > + ("ncurses" ,ncurses)))
>> > + (native-inputs
>> > + `(("rapidjson" ,rapidjson)
>> > 
>> 
>> Rapidjson is an input (even if ccls is not linked against because its a
>> header-only library).
>> 
>> 
>> > + ("gcc" ,gcc)))
>> > 
>> 
>> This shouldn't be needed as it is an implicit input.
>> 
>> Thanks,
>> 
>> Mathieu
>> 
>
>

Mathieu,

I have reverted the affected commits. Thank you for bringing the issue
to my attention.

-- 
Brett M. Gilio
GNU Guix, Contributor <https://guix.gnu.org/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-16 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 15:13 Remarks about commit 2c82d4ad10de8 Mathieu Othacehe
2019-12-16 17:44 ` Brett Gilio
2019-12-16 20:06   ` Brett Gilio

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).