Describe Bug armclang工具链,xmake f -p cross -a cortex-m4 --toolchain=armclang -c生成工程后,用xmake project -k compile_commands .vscode生成的compile_commands.json文件中,自动生成的argument “-target=arm-arm-none-eabi” 项有问题(一个“-”号) Expected Behavior 正确的应该是"--target=arm-arm...
如果没有自动生成compile_commands.json,我们可以在vscode中使用 >XMake: UpdateIntellisense 命令手动触发生成,或者在命令行中输入以下命令来生成。 xmake project -k compile_commands build 如何使用 创建项目 当你要写C++代码时,比如新建一个名为“hello_world”的项目。可以选择在命令行中输入: xmake create hello...
假如你使用 clangd + codelldb(clangd 是语法提示/补全工具,codelldb 是调试工具),因为 xmake 插件默认在 .vscode 目录下生成 compile_commands.json,那么只要在.vscode/settings.json写下: {"clangd.arguments":["--compile-commands-dir=.vscode",],"xmake.debugConfigType":"codelldb",} 这时候点开 src/mai...
解决方案: 手动生成compile_commands.json: xmakeproject-k compile_commands 然后把它拷贝到.vscode中即可。 c_cpp_properties.json(参考) {"configurations":[{"compileCommands":".vscode/compile_commands.json","intelliSenseMode":"windows-msvc-x64","cStandard":"c17","cppStandard":"c++17"}],"version"...
手动生成compile_commands.json: xmake project -k compile_commands 1. 然后把它拷贝到.vscode中即可。 c_cpp_properties.json(参考) { "configurations": [ { "compileCommands": ".vscode/compile_commands.json", "intelliSenseMode": "windows-msvc-x64", ...
不支持 compile_commands.json 生成 而在新版中,我们对 C++20 模块的实现进行了重构和升级,上面提到的几点,我们都做了支持,新增了对 Headerunits 的支持,因此我们可以在模块中引入 STL 和 用户头文件模块。 同时,由于 msvc 和 gcc 高版本 都已经内置对模块依赖图的扫描分析,Xmake 会优先借助编译器实现模块依赖图...
compile_commands.json should be updated on the next build when xmake configuration was changed to reflect current built config. Project Configuration add_rules("mode.debug", "mode.release") set_languages("c++20") add_rules("plugin.compile_commands.autoupdate") add_requires("gtest") add_packages...
不支持 CMakelists 生成 不支持 compile_commands.json 生成 而在新版中,我们对 C++20 模块的实现进行了重构和升级,上面提到的几点,我们都做了支持,新增了对 Headerunits 的支持,因此我们可以在模块中引入 STL 和 用户头文件模块。 同时,由于 msvc 和 gcc 高版本 都已经内置对模块依赖图的扫描分析,Xmake 会优先...
近期,我们也更新了下xmake-vscode插件,通过自动生成compile_commands.json到当前项目的.vscode目录下,然后我们只需要配置.vscode/c_cpp_properties.json在里面关联上这个.vscode/compile_commands.json路径 就能实现intellisense自动提示,同步xmake.lua里面的includedirs等配置信息。
10. 提供compile_commands.json导出插件 11. 改进vs201x工程生成插件,支持多模式、多架构同时构建和自由切换不干扰 利用find_package查找依赖包 此接口参考了cmake对于find_*系列接口的设计,实现在项目中动态的查找和添加包依赖。 target("test") set_kind("binary") ...