Skip to content

[Bug] scons --cdb生成的compile_commands.json缺少了关于rt-thread/components/libc/compilers/common/extension的包含路径 #10242

@EcutAtom336

Description

@EcutAtom336

RT-Thread Version

master

Hardware Type/Architectures

gd32407v-lckfb

Develop Toolchain

Microsoft VScode

Describe the bug

使用scons --cdb和scons --vsc后用vscode打开,clangd无法索引sys/types.h(该文件在rt-thread/components/libc/compilers/common/extension/sys/types.h),如果在生成的compile_commands.json中加上-Imy_path\rt-thread\components\libc\compilers\common\extension就可以正常索引。gd32407v-lckfb和gd32470v-lckfb都有这个问题。
Image

Other additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions