From ee8bfccd7f34c05c7002c7c045f9f8c319754d2b Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 31 Mar 2022 20:55:37 +0800 Subject: [PATCH] chore: c++ config --- .vscode/c_cpp_properties.json | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 4a5994dc..b0e4da55 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -1,4 +1,5 @@ { + "version": 4, "configurations": [ { "name": "Win32", @@ -11,9 +12,13 @@ "_UNICODE" ], "compilerPath": "C:/Program Files (x86_64)/mingw64/bin/g++.exe", - "cStandard": "c89", - "cppStandard": "c++11", - "intelliSenseMode": "gcc-x64" + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "gcc-x64", + "compilerArgs": [ + "-lm", + "-O2" + ] }, { "name": "Win32_Portable", @@ -26,9 +31,13 @@ "_UNICODE" ], "compilerPath": "/Applications/mingw64/bin/g++.exe", - "cStandard": "c89", - "cppStandard": "c++11", - "intelliSenseMode": "gcc-x64" + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "gcc-x64", + "compilerArgs": [ + "-lm", + "-O2" + ] }, { "name": "Linux", @@ -41,7 +50,7 @@ "_UNICODE" ], "compilerPath": "/usr/bin/g++", - "cStandard": "c17", + "cStandard": "c11", "cppStandard": "c++14", "intelliSenseMode": "linux-gcc-x64", "compilerArgs": [ @@ -49,6 +58,5 @@ "-O2" ] } - ], - "version": 4 -} \ No newline at end of file + ] +}