Skip to content

Setting b_vscrt via meson setup --reconfigure has no effect on the generated build.ninja #11732

Closed

Description

@dnicolodi

Reconfiguring with a different value of b_vscrt does not result in changes to build.ninja.

Running meson setup with -Db_vscrt=mdd results in the correct flag being passed to the compiler:

$ meson setup build --vsenv -Db_vscrt=mdd
...
  User defined options
    vsenv        : True
    b_vscrt      : mdd
...
$ grep '/MD' build/build.ninja
 ARGS = ... "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/std:c11" "/O2" "/Zi" ...
...

edited to remove unrelated output. However, reconfiguring with -Db_vscrt=md has no effect:

$ meson setup build --vsenv -Db_vscrt=md --reconfigure
...
  User defined options
    vsenv        : True
    b_vscrt      : md
...
$ grep '/MD' build/build.ninja
 ARGS = ... "/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/std:c11" "/O2" "/Zi" ...
...

also edited to remove unrelated output. I would have expected the /MDd flag to be turned into /MD.

This is Windows with VS 17.5.3, Python 3.10, meson 1.1.0 and ninja 1.10.2.

Activity

  1. added a commit that references this issue on Dec 23, 2023
  2. bruchar1 commented on Jan 3, 2024

    @bruchar1
    Member

    This seems to be true for all base options. For instance, b_ndebug faces the same problem.

  3. added 3 commits that reference this issue on Jan 4, 2024
    cb61c1f
    9f26903
    98db3e7
  4. added a commit that references this issue on Feb 23, 2024
    20c9f3e
  5. added a commit that references this issue on Jun 4, 2024
    2096919
  6. added a commit that references this issue on Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions