From cc38e36ea2effb6598dc87248c0832f7628479b4 Mon Sep 17 00:00:00 2001 From: Timerix Date: Fri, 25 Apr 2025 19:27:59 +0500 Subject: [PATCH] std=c99 --- .vscode/launch.json | 4 +--- build.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6b7d442..9789976 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,12 +6,10 @@ "type": "cppdbg", "request": "launch", "cwd": "${workspaceFolder}/bin", + "program": "${workspaceFolder}/bin/cbuild", "windows": { "program": "${workspaceFolder}\\bin\\cbuild.exe", }, - "linux": { - "program": "${workspaceFolder}/bin/cbuild", - }, "args": [ "-p", "../example.proj.dtsod", "exe"], "preLaunchTask": "build", "stopAtEntry": false, diff --git a/build.sh b/build.sh index aeff8e3..c8414aa 100644 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ set -eo pipefail CONFIG_DIR="/etc/cbuild" 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_RELEASE="-O2 -flto=auto -fdata-sections -ffunction-sections -Wl,--gc-sections"