UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

Add tracking of one line build to bear

Open ladisgin opened this issue 3 years ago • 1 comments

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

ladisgin avatar Jul 07 '22 12:07 ladisgin

Probably we should update our Bear to last version

ladisgin avatar Jul 15 '22 11:07 ladisgin