更改编译工具链

This commit is contained in:
iridiumR 2022-03-12 12:31:33 +08:00
parent 09379a8cf3
commit f0d64dcdc9
5 changed files with 18 additions and 16 deletions

View file

@ -10,7 +10,7 @@
"stopAtEntry": true, // truetrue
"cwd": "C:/Project/LLVM/bin",//
"environment": [],
"externalConsole": true, // true
"externalConsole": false, // true
"MIMode": "gdb",
"miDebuggerPath": "C:\\Project\\LLVM\\bin\\gdb.exe",//gdb
"setupCommands": [

View file

@ -5,10 +5,11 @@
"code-runner.runInTerminal": true, // false
"code-runner.executorMap": {
// "c": "cd $dir && gcc *.c -o $fileNameWithoutExt.exe && $dir$fileNameWithoutExt.exe",
// "cpp": "cd $dir && g++ *.cpp -o $fileNameWithoutExt.exe && $dir$fileNameWithoutExt.exe"
"c": "cd $dir && gcc *.c -fexec-charset=gb2312 -o $fileNameWithoutExt.exe && $dir$fileNameWithoutExt.exe",
"cpp": "cd $dir && g++ *.cpp -fexec-charset=gb2312 -o $fileNameWithoutExt.exe && $dir$fileNameWithoutExt.exe"
"cpp": "cd $dir && g++ *.cpp -std=c++17 -fexec-charset=gb2312 -o $fileNameWithoutExt.exe && $dir$fileNameWithoutExt.exe"
// "c": "cd $dir && clang $fileName -o $fileNameWithoutExt.exe -Wall -g -Og -static-libgcc -fcolor-diagnostics --target=x86_64-w64-mingw -std=c11 && $dir$fileNameWithoutExt",
// "cpp": "cd $dir && clang++ *.cpp -o $fileNameWithoutExt.exe -Wall -g -Og -static-libgcc -fcolor-diagnostics --target=x86_64-w64-mingw-g++ -std=c++17 && $dir$fileNameWithoutExt"
}, // code runner
@ -18,19 +19,20 @@
"C_Cpp.clang_format_sortIncludes": true, // include
"C_Cpp.intelliSenseEngine": "Default", // DefaultTag Parsercpptools
// "C_Cpp.errorSquiggles": "Disabled", // clanglint
// "C_Cpp.autocomplete": "Disabled", // clang
"C_Cpp.errorSquiggles": "Disabled", // clanglint
"C_Cpp.autocomplete": "Disabled", // clang
// "clang.cflags": [ // c
// "--target=x86_64-w64-mingw",
// "-std=c11",
// "-Wall"
// ],
// "clang.cxxflags": [ // c++
// "--target=x86_64-w64-mingw",
// "-std=c++17",
// "-Wall"
// ],
// "clang.completion.enable": true,
"C_Cpp.default.compilerPath": "C:/Program Files/LLVM/bin/gcc.exe" // cpptools
"clang.cflags": [ // c
"--target=x86_64-w64-mingw",
"-std=c11",
"-Wall"
],
"clang.cxxflags": [ // c++
"--target=x86_64-w64-mingw",
"-std=c++17",
"-Wall"
],
"clang.completion.enable": true,
"C_Cpp.default.compilerPath": "C:/Program Files/LLVM/bin/gcc.exe",
// "C_Cpp.clang_format_fallbackStyle": "LLVM" // cpptools
}