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

Add --config option printing ./configure options used #2817

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

nicowilliams
Copy link
Contributor

@nicowilliams nicowilliams commented Aug 2, 2023

./jq --config
'--prefix=/tmp/jq' '--with-oniguruma=builtin' '--enable-maintainer-mode' '--srcdir=..' 'CFLAGS=-pthread -fstack-protector-all'

We could add lines recording compiler name and version, flex/bison version, autotools versions, etc.

Closes #2816.

src/main.c Outdated Show resolved Hide resolved
@nicowilliams nicowilliams force-pushed the add--config-option branch 2 times, most recently from 507f43b to 2232b47 Compare August 4, 2023 04:22
@itchyny
Copy link
Contributor

itchyny commented Aug 5, 2023

This resolves #2816 but assigned milestones are different.

@nicowilliams
Copy link
Contributor Author

Milestones now line up.

Makefile.am Outdated Show resolved Hide resolved
Copy link
Member

@wader wader left a comment

Choose a reason for hiding this comment

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

Except my comment i think it looks good 👍

btw for fq i expose some or these things using a function that return an structure with various information that is then used by the cli code written in jq code, kind of nice. Maybe could be interesting in the future? maybe not cli in jq but expose things as a function or $global

@nicowilliams
Copy link
Contributor Author

Now with $JQ_BUILD_CONFIGURATION.

@nicowilliams nicowilliams merged commit 583e4a2 into jqlang:master Aug 19, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command-line option to show build options used to build jq
3 participants