Skip to content

Multi-Call command line building error #143506

Open
@lorenz

Description

@lorenz

I'm using a multicall build of LLVM/Clang (i.e. I have a single binary symlinked to all tools) and I'm running into an issue where if a driver call gets executed out-of-process (either because it gets expanded into multiple cc1 invocations or forced via -fproc-stat-report) the argument parsing breaks.

The multicall binary calls "path/to/clang clang -cc1" (note the duplicate clang), this works for integrated (internal redirection, no execve) cc1 but breaks for out-of-process execution. It works if I invoke the compiler as "path/to/llvm clang" (not using the symlink) as then the tool name is not in the command line twice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions