Reputation:
I am developing a C++
project using VS Code and clang++
as a compiler. My build task of VS Code is as follows:
{
"type": "cppbuild",
"label": "Clang Test Build",
"command": "C:\\clang+llvm-18.1.8-x86_64-pc-windows-msvc\\bin\\clang++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${workspaceFolder}\\src\\Tests\\*.cpp",
"${workspaceFolder}\\src\\jet\\*.cpp",
"-o",
"${workspaceFolder}\\bin\\Tests\\tests.exe",
"-I${workspaceFolder}\\src\\external\\googletest\\include",
"-I${workspaceFolder}\\src\\jet",
"-L${workspaceFolder}\\src\\external\\googletest\\lib",
"-lgtest", "-lgtest_main"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "compiler: \"C:\\clang+llvm-18.1.8-x86_64-pc-windows-msvc\\bin\\clang++.exe\""
}
This is the absolute minimum of the project. I have src
folder with UnitTests and the acutal application. There is an external
folder for dependencies. Once the project grew to say about 40-50 cpp files, the builds are taking super long. Any way I can enable incremental linking in this? I know that with visual studio I can use the flag \I
to enable, Is there such a method for clang++
? If not, what is my alternative? Searching around didn't give me a lot of details regarding this.
Upvotes: 0
Views: 84