Skip to content

Don't build pch when xmake project -k compile_commands --lsp=clangd #6710

@star-hengxing

Description

@star-hengxing

Xmake Version

dev

Operating System Version and Architecture

any

Describe Bug

See clangd/clangd#856 (comment)

target_cmds.prepare_targets()

if not lsp or lsp ~= "clangd" then
target:set("pcheader", nil)
target:set("pcxxheader", nil)
end
-- add target commands
_add_target_commands(jsonfile, target)

Expected Behavior

N/A

Project Configuration

N/A

Additional Information and Error Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions