Compare commits

..

2 Commits

Author SHA1 Message Date
4002a222f5 Merge branch 'main' of https://timerix.ddns.net/git/Timerix/cbuild-c 2025-04-25 19:29:17 +05:00
cc38e36ea2 std=c99 2025-04-25 19:27:59 +05:00
2 changed files with 2 additions and 4 deletions

4
.vscode/launch.json vendored
View File

@ -6,12 +6,10 @@
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"cwd": "${workspaceFolder}/bin", "cwd": "${workspaceFolder}/bin",
"program": "${workspaceFolder}/bin/cbuild",
"windows": { "windows": {
"program": "${workspaceFolder}\\bin\\cbuild.exe", "program": "${workspaceFolder}\\bin\\cbuild.exe",
}, },
"linux": {
"program": "${workspaceFolder}/bin/cbuild",
},
"args": [ "-p", "../example.proj.dtsod", "exe"], "args": [ "-p", "../example.proj.dtsod", "exe"],
"preLaunchTask": "build", "preLaunchTask": "build",
"stopAtEntry": false, "stopAtEntry": false,

View File

@ -3,7 +3,7 @@ set -eo pipefail
CONFIG_DIR="/etc/cbuild" CONFIG_DIR="/etc/cbuild"
CMP="gcc" CMP="gcc"
WARN="-Wall -Wextra -Wno-discarded-qualifiers -Wno-unused-parameter" WARN="-std=c99 -Wall -Wextra -Wno-discarded-qualifiers -Wno-unused-parameter"
ARGS_DEBUG="-O0 -g" ARGS_DEBUG="-O0 -g"
ARGS_RELEASE="-O2 -flto=auto -fdata-sections -ffunction-sections -Wl,--gc-sections" ARGS_RELEASE="-O2 -flto=auto -fdata-sections -ffunction-sections -Wl,--gc-sections"