Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@franramirez688
Copy link
Contributor

@franramirez688 franramirez688 commented Jan 11, 2023

Changelog: Feature: AutotoolsToolchain helper functions: update_configure_args, update_make_args, and update_autoreconf_args can also add new values
Docs: conan-io/docs#2895

Summary: before this change, it was only possible to update/remove existing values. Now, you could add new ones. Trying to avoid weird situations like:

        tc = AutotoolsToolchain(self)
        tc.configure_args.extend([
            "--datarootdir=${prefix}/lib", # do not use share
            "--disable-layoutex",
            "--disable-layout"])
        tc.update_configure_args({"--force": None})

After my change, then it could be reduced to:

        tc = AutotoolsToolchain(self)
        tc.update_configure_args({
            "--force": None,
            "--datarootdir": "${prefix}/lib", # do not use share
            "--disable-layoutex": "",
            "--disable-layout": ""})

Both are working, but I think the latest one could be the expected behavior. WDYT?

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.

4 participants