mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
Update vscode-cpptools config
This commit is contained in:
parent
58f7fc86a5
commit
d7e58bab5b
82
.vscode/c_cpp_properties.json
vendored
82
.vscode/c_cpp_properties.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Linux",
|
"name": "Fennix x64 (Linux, GCC, debug)",
|
||||||
"includePath": [
|
"includePath": [
|
||||||
"${workspaceFolder}/libc/include/**",
|
"${workspaceFolder}/libc/include/**",
|
||||||
"${workspaceFolder}/out/system/include/**",
|
"${workspaceFolder}/out/system/include/**",
|
||||||
@ -10,21 +10,93 @@
|
|||||||
],
|
],
|
||||||
"defines": [
|
"defines": [
|
||||||
"__debug_vscode__",
|
"__debug_vscode__",
|
||||||
|
"KERNEL_NAME=\"Fennix\"",
|
||||||
|
"KERNEL_VERSION=\"1.0\"",
|
||||||
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
||||||
"GIT_COMMIT_SHORT=\"0000000\"",
|
"GIT_COMMIT_SHORT=\"0000000\"",
|
||||||
|
"a64",
|
||||||
"DEBUG=\"1\""
|
"DEBUG=\"1\""
|
||||||
],
|
],
|
||||||
"compilerPath": "/usr/bin/gcc",
|
"compilerPath": "${workspaceFolder}/../tools/cross/bin/amd64-elf-gcc",
|
||||||
"cStandard": "c17",
|
"cStandard": "c17",
|
||||||
"cppStandard": "c++20",
|
"cppStandard": "c++20",
|
||||||
"intelliSenseMode": "gcc-x64",
|
"intelliSenseMode": "gcc-x64",
|
||||||
"configurationProvider": "ms-vscode.makefile-tools",
|
"configurationProvider": "ms-vscode.makefile-tools",
|
||||||
"compilerArgs": [
|
"compilerArgs": [
|
||||||
|
// Compiler flags
|
||||||
|
"-fPIC",
|
||||||
|
"-fPIE",
|
||||||
|
"-pie",
|
||||||
|
"-march=x86-64",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
"-nostdinc++",
|
"-ffunction-sections",
|
||||||
"-nostdinc",
|
|
||||||
"-fno-builtin",
|
"-fno-builtin",
|
||||||
"-ffreestanding"
|
|
||||||
|
// C++ flags
|
||||||
|
"-fexceptions",
|
||||||
|
|
||||||
|
// Linker flags
|
||||||
|
"-fPIC",
|
||||||
|
"-fPIE",
|
||||||
|
"-pie",
|
||||||
|
"-nostdlib",
|
||||||
|
"-nodefaultlibs",
|
||||||
|
"-nolibc",
|
||||||
|
"-zmax-page-size=0x1000",
|
||||||
|
"-static",
|
||||||
|
|
||||||
|
// VSCode flags
|
||||||
|
"-ffreestanding",
|
||||||
|
"-nostdinc",
|
||||||
|
"-nostdinc++"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fennix x32 (Linux, GCC, debug)",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/include/**"
|
||||||
|
],
|
||||||
|
"defines": [
|
||||||
|
"__debug_vscode__",
|
||||||
|
"KERNEL_NAME=\"Fennix\"",
|
||||||
|
"KERNEL_VERSION=\"1.0\"",
|
||||||
|
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
||||||
|
"GIT_COMMIT_SHORT=\"0000000\"",
|
||||||
|
"a32",
|
||||||
|
"DEBUG=\"1\""
|
||||||
|
],
|
||||||
|
"compilerPath": "${workspaceFolder}/../tools/cross/bin/i686-elf-gcc",
|
||||||
|
"cStandard": "c17",
|
||||||
|
"cppStandard": "c++20",
|
||||||
|
"intelliSenseMode": "gcc-x86",
|
||||||
|
"configurationProvider": "ms-vscode.makefile-tools",
|
||||||
|
"compilerArgs": [
|
||||||
|
// Compiler flags
|
||||||
|
"-fPIC",
|
||||||
|
"-fPIE",
|
||||||
|
"-pie",
|
||||||
|
"-march=i686",
|
||||||
|
"-pipe",
|
||||||
|
"-ffunction-sections",
|
||||||
|
"-fno-builtin",
|
||||||
|
|
||||||
|
// C++ flags
|
||||||
|
"-fexceptions",
|
||||||
|
|
||||||
|
// Linker flags
|
||||||
|
"-fPIC",
|
||||||
|
"-fPIE",
|
||||||
|
"-pie",
|
||||||
|
"-nostdlib",
|
||||||
|
"-nodefaultlibs",
|
||||||
|
"-nolibc",
|
||||||
|
"-zmax-page-size=0x1000",
|
||||||
|
"-static",
|
||||||
|
|
||||||
|
// VSCode flags
|
||||||
|
"-ffreestanding",
|
||||||
|
"-nostdinc",
|
||||||
|
"-nostdinc++"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user