Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move 'libformat_parser' build into the GCC build directory, and into libgrust #2947

Conversation

tschwinge
Copy link
Member

..., as discussed in #2883 "Move cargo build into the GCC build directory".

…RUST_LDFLAGS'

That directory doesn't even exist.

	gcc/rust/
	* Make-lang.in (RUST_LDFLAGS): Remove
	'libgrust/librustc_format_parser'.
…RUST_LDFLAGS'

This isn't necessary, as the full path to 'libproc_macro_internal.a' is
specified.

	gcc/rust/
	* Make-lang.in (RUST_LDFLAGS): Remove
	'libgrust/libproc_macro_internal'.
Unused.

	gcc/rust/
	* Make-lang.in (RUST_LDFLAGS): Inline into all users.
... to avoid verbatim repetition.

	gcc/rust/
	* Make-lang.in (LIBPROC_MACRO_INTERNAL): New.
	(RUST_LIBDEPS, crab1$(exeext)): Use it.
... to avoid verbatim repetition.

	gcc/rust/
	* Make-lang.in (LIBPROC_MACRO_INTERNAL): New.
	(RUST_LIBDEPS, crab1$(exeext), rust/libformat_parser.a): Use it.
	gcc/rust/
	* Make-lang.in (RUST_LIBDEPS): Inline into all users.
	gcc/rust/
	* Make-lang.in (LIBFORMAT_PARSER): Point to the actual build artifact.
	($(LIBFORMAT_PARSER)): Don't cache it.
Fixes #2883.

	* .gitignore: Remove 'libgrust/*/target/'.
	gcc/rust/
	* Make-lang.in (LIBFORMAT_PARSER): Point to the GCC build
	directory.
	* ($(LIBFORMAT_PARSER)): Build in the GCC build directory.
Addresses #2883.

	contrib/
	* gcc_update (files_and_dependencies): Update for
	'libformat_parser' in libgrust.
	gcc/rust/
	* Make-lang.in (LIBFORMAT_PARSER): Point to 'libformat_parser'
	build in libgrust.
	(%.toml:, $(LIBFORMAT_PARSER):): Remove.
	libgrust/
	* libformat_parser/Makefile.am: New.
	* Makefile.am [!TARGET_LIBRARY] (SUBDIRS): Add 'libformat_parser'.
	* configure.ac: Handle it.
	(TARGET_LIBRARY): New 'AM_CONDITIONAL'.
	* libformat_parser/Makefile.in: Generate.
	* Makefile.in: Regenerate.
	* configure: Likewise.
@tschwinge tschwinge linked an issue Apr 11, 2024 that may be closed by this pull request
Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you :)

@CohenArthur
Copy link
Member

not sure why the Remark step of the CI is failing... this has nothing to do with your changes anyway

@tschwinge
Copy link
Member Author

@CohenArthur: Do I get your permission to also directly integrate upstream such changes, in order to incrementally pave the way for adding 'libformat_parser' directly in libgrust, without the broken intermediate steps?

@CohenArthur
Copy link
Member

@CohenArthur: Do I get your permission to also directly integrate upstream such changes, in order to incrementally pave the way for adding 'libformat_parser' directly in libgrust, without the broken intermediate steps?

of course! please do :) then I'm guessing we'll also upstream #2942 that way?

@tschwinge tschwinge added this pull request to the merge queue Apr 16, 2024
Merged via the queue into master with commit 611d0bd Apr 16, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move cargo build into the GCC build directory
2 participants