Skip to content

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.

@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.

@nicowilliams nicowilliams requested a review from wader August 17, 2023 16:54
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
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