mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-29 07:47:59 +00:00
Added vscode configurations
This commit is contained in:
parent
c1bb978477
commit
aa29c8a415
85
.vscode/c_cpp_properties.json
vendored
85
.vscode/c_cpp_properties.json
vendored
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Linux",
|
"name": "Fennix x64 (Linux, GCC, debug)",
|
||||||
"includePath": [
|
"includePath": [
|
||||||
"${workspaceFolder}/include/**"
|
"${workspaceFolder}/include/**"
|
||||||
],
|
],
|
||||||
@ -11,36 +11,99 @@
|
|||||||
"KERNEL_VERSION=\"1.0\"",
|
"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/x86_64-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": [
|
||||||
// "-m32",
|
// Compiler flags
|
||||||
"-mcmodel=kernel", /* 64-bit only */
|
"-fno-pic",
|
||||||
|
"-fno-pie",
|
||||||
|
"-mno-red-zone",
|
||||||
|
"-march=core2",
|
||||||
|
"-pipe",
|
||||||
|
"-mcmodel=kernel",
|
||||||
|
"-fno-builtin",
|
||||||
|
|
||||||
|
// C++ flags
|
||||||
"-fno-rtti",
|
"-fno-rtti",
|
||||||
"-fexceptions",
|
"-fexceptions",
|
||||||
|
|
||||||
|
// Linker flags
|
||||||
|
"-T${workspaceFolder}/Architecture/amd64/linker.ld",
|
||||||
|
"-Wl,-static,--no-dynamic-linker,-ztext",
|
||||||
|
"-nostdlib",
|
||||||
|
"-nodefaultlibs",
|
||||||
|
"-nolibc",
|
||||||
|
"-zmax-page-size=0x1000",
|
||||||
|
"-shared",
|
||||||
|
|
||||||
|
// Debug flags
|
||||||
|
"-ggdb3",
|
||||||
|
"-O0",
|
||||||
|
"-fdiagnostics-color=always",
|
||||||
|
"-fverbose-asm",
|
||||||
|
"-fstack-usage",
|
||||||
|
"-fstack-check",
|
||||||
|
"-fsanitize=undefined"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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
|
||||||
"-fno-pic",
|
"-fno-pic",
|
||||||
"-fno-pie",
|
"-fno-pie",
|
||||||
"-mno-80387",
|
"-mno-80387",
|
||||||
"-mno-mmx",
|
"-mno-mmx",
|
||||||
"-mno-3dnow",
|
"-mno-3dnow",
|
||||||
"-mno-red-zone",
|
"-mno-red-zone",
|
||||||
"-mno-sse",
|
"-march=pentium",
|
||||||
"-mno-sse2",
|
|
||||||
"-march=nehalem",
|
|
||||||
"-pipe",
|
"-pipe",
|
||||||
"-msoft-float",
|
"-msoft-float",
|
||||||
"-fno-builtin",
|
"-fno-builtin",
|
||||||
"-ffreestanding",
|
|
||||||
"-nostdinc",
|
// C++ flags
|
||||||
|
"-fno-rtti",
|
||||||
|
"-fexceptions",
|
||||||
|
|
||||||
|
// Linker flags
|
||||||
|
"-T${workspaceFolder}/Architecture/i686/linker.ld",
|
||||||
"-Wl,-static,--no-dynamic-linker,-ztext",
|
"-Wl,-static,--no-dynamic-linker,-ztext",
|
||||||
"-shared",
|
"-nostdlib",
|
||||||
|
"-nodefaultlibs",
|
||||||
|
"-nolibc",
|
||||||
"-zmax-page-size=0x1000",
|
"-zmax-page-size=0x1000",
|
||||||
"-nostdinc++",
|
"-shared",
|
||||||
|
|
||||||
|
// Debug flags
|
||||||
|
"-ggdb3",
|
||||||
|
"-O0",
|
||||||
|
"-fdiagnostics-color=always",
|
||||||
|
"-fverbose-asm",
|
||||||
|
"-fstack-usage",
|
||||||
|
"-fstack-check",
|
||||||
"-fsanitize=undefined"
|
"-fsanitize=undefined"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user