Skip to content

Append and AppendUnique handle quoting differently #4262

Open

Description

@mwichmann

Example on a Windows platform and current

env1.Append(CCFLAGS = '/this /is /a /test')
env2.AppendUnique(CCFLAGS = '/this /is /a /test')

giving in one case three arguments and the other a single quoted argument:

cl /Fotestfile.obj /c testfile.cpp /TP /nologo /this /is /a /test
cl /Fotestfile.obj /c testfile.cpp /TP /nologo "/this /is /a /test"

This was split out from #3876 as it is not specific to CPPDEFINES, and that issue was intended to be devoted to CPPDEFINES issues.

Activity

  1. added
    Append
    on Nov 14, 2022
  2. self-assigned this
    on Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Append

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions