Skip to content

Add tracking of one line build to bear #316

@ladisgin

Description

@ladisgin

Description
Often in Makefile we can find one line build commands like clang a.c b.c -o res. Where catch by bear only as compile command. But inside of it command also have link command to binary, that we should use as target.

[
    {
        "arguments": [
            "clang",
            "-c",
            "-o",
            "res",
            "a.c"
        ],
        "directory": "/home/utbot/remote/one_command_multi_src",
        "file": "a.c"
    },
    {
        "arguments": [
            "clang",
            "-c",
            "-o",
            "res",
            "b.c"
        ],
        "directory": "/home/utbot/remote/one_command_multi_src",
        "file": "b.c"
    }
]

Expected behavior
Link command for res executable

Potential solution
Add to bear functionality that catch link part of command like clang a.c b.c -o res

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions