mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
212 lines
4.8 KiB
JSON
212 lines
4.8 KiB
JSON
{
|
|
"configurations": [
|
|
{
|
|
"name": "Fennix x64 (Linux, GCC, debug)",
|
|
"includePath": [
|
|
"${workspaceFolder}/include",
|
|
"${workspaceFolder}/include/**",
|
|
"${workspaceFolder}/include_std",
|
|
"${workspaceFolder}/include_std/**"
|
|
],
|
|
"defines": [
|
|
"__debug_vscode__",
|
|
"KERNEL_NAME=\"Fennix\"",
|
|
"KERNEL_ARCH=\"amd64\"",
|
|
"KERNEL_VERSION=\"1.0\"",
|
|
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
|
"GIT_COMMIT_SHORT=\"0000000\"",
|
|
"a64",
|
|
"a86",
|
|
"DEBUG=\"1\""
|
|
],
|
|
"forcedInclude": [
|
|
"${workspaceFolder}/.vscode/preinclude.h"
|
|
],
|
|
"compilerPath": "${workspaceFolder}/../tools/cross/bin/x86_64-fennix-gcc",
|
|
"cStandard": "c17",
|
|
"cppStandard": "c++20",
|
|
"intelliSenseMode": "gcc-x64",
|
|
"configurationProvider": "ms-vscode.makefile-tools",
|
|
"compilerArgs": [
|
|
// Compiler flags
|
|
"-fno-pic",
|
|
"-fno-pie",
|
|
"-mno-red-zone",
|
|
"-march=core2",
|
|
"-pipe",
|
|
"-mcmodel=kernel",
|
|
"-fno-builtin",
|
|
"-m64",
|
|
// Warnings
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wfloat-equal",
|
|
"-Wpointer-arith",
|
|
"-Wcast-align",
|
|
"-Wredundant-decls",
|
|
"-Winit-self",
|
|
"-Wswitch-default",
|
|
"-Wstrict-overflow=5",
|
|
"-Wconversion",
|
|
// C++ flags
|
|
"-fno-rtti",
|
|
"-fno-exceptions",
|
|
// Linker flags
|
|
"-T${workspaceFolder}/arch/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",
|
|
// VSCode flags
|
|
"-ffreestanding",
|
|
"-nostdinc",
|
|
"-nostdinc++"
|
|
]
|
|
},
|
|
{
|
|
"name": "Fennix x32 (Linux, GCC, debug)",
|
|
"includePath": [
|
|
"${workspaceFolder}/include",
|
|
"${workspaceFolder}/include/**",
|
|
"${workspaceFolder}/include_std",
|
|
"${workspaceFolder}/include_std/**"
|
|
],
|
|
"defines": [
|
|
"__debug_vscode__",
|
|
"KERNEL_NAME=\"Fennix\"",
|
|
"KERNEL_ARCH=\"i386\"",
|
|
"KERNEL_VERSION=\"1.0\"",
|
|
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
|
"GIT_COMMIT_SHORT=\"0000000\"",
|
|
"a32",
|
|
"a86",
|
|
"DEBUG=\"1\""
|
|
],
|
|
"compilerPath": "${workspaceFolder}/../tools/cross/bin/i386-fennix-gcc",
|
|
"cStandard": "c17",
|
|
"cppStandard": "c++20",
|
|
"intelliSenseMode": "gcc-x86",
|
|
"configurationProvider": "ms-vscode.makefile-tools",
|
|
"compilerArgs": [
|
|
// Compiler flags
|
|
"-fno-pic",
|
|
"-fno-pie",
|
|
"-mno-80387",
|
|
"-mno-mmx",
|
|
"-mno-3dnow",
|
|
"-mno-red-zone",
|
|
"-march=pentium",
|
|
"-pipe",
|
|
"-msoft-float",
|
|
"-fno-builtin",
|
|
"-m32",
|
|
// Warnings
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wfloat-equal",
|
|
"-Wpointer-arith",
|
|
"-Wcast-align",
|
|
"-Wredundant-decls",
|
|
"-Winit-self",
|
|
"-Wswitch-default",
|
|
"-Wstrict-overflow=5",
|
|
"-Wconversion",
|
|
// C++ flags
|
|
"-fno-rtti",
|
|
"-fno-exceptions",
|
|
// Linker flags
|
|
"-T${workspaceFolder}/arch/i386/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",
|
|
// VSCode flags
|
|
"-ffreestanding",
|
|
"-nostdinc",
|
|
"-nostdinc++"
|
|
]
|
|
},
|
|
{
|
|
"name": "Fennix Aarch64 (Linux, GCC, debug)",
|
|
"includePath": [
|
|
"${workspaceFolder}/include",
|
|
"${workspaceFolder}/include/**",
|
|
"${workspaceFolder}/include_std",
|
|
"${workspaceFolder}/include_std/**"
|
|
],
|
|
"defines": [
|
|
"__debug_vscode__",
|
|
"KERNEL_NAME=\"Fennix\"",
|
|
"KERNEL_ARCH=\"aarch64\"",
|
|
"KERNEL_VERSION=\"1.0\"",
|
|
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
|
"GIT_COMMIT_SHORT=\"0000000\"",
|
|
"aa64",
|
|
"DEBUG=\"1\""
|
|
],
|
|
"compilerPath": "${workspaceFolder}/../tools/cross/bin/aarch64-fennix-gcc",
|
|
"cStandard": "c17",
|
|
"cppStandard": "c++20",
|
|
"intelliSenseMode": "linux-gcc-arm64",
|
|
"configurationProvider": "ms-vscode.makefile-tools",
|
|
"compilerArgs": [
|
|
// Compiler flags
|
|
"-pipe",
|
|
"-fno-builtin",
|
|
"-msoft-float",
|
|
"-fPIC",
|
|
"-Wstack-protector",
|
|
// Warnings
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wfloat-equal",
|
|
"-Wpointer-arith",
|
|
"-Wcast-align",
|
|
"-Wredundant-decls",
|
|
"-Winit-self",
|
|
"-Wswitch-default",
|
|
"-Wstrict-overflow=5",
|
|
"-Wconversion",
|
|
// C++ flags
|
|
"-fno-rtti",
|
|
"-fno-exceptions",
|
|
// Linker flags
|
|
"-T${workspaceFolder}/arch/aarch64/linker.ld",
|
|
"-fPIC",
|
|
// Debug flags
|
|
"-ggdb3",
|
|
"-O0",
|
|
"-fdiagnostics-color=always",
|
|
"-fverbose-asm",
|
|
"-fstack-usage",
|
|
"-fstack-check",
|
|
"-fsanitize=undefined",
|
|
// VSCode flags
|
|
"-ffreestanding",
|
|
"-nostdinc",
|
|
"-nostdinc++"
|
|
]
|
|
}
|
|
],
|
|
"version": 4
|
|
} |