diff --git a/.vscode/launch.json b/.vscode/launch.json index ee60f70..56b9520 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,8 +9,9 @@ "type": "gdb", "request": "launch", "target": "${workspaceFolder}/build/2D_Engine", - "cwd": "${workspaceRoot}", - "valuesFormatting": "parseText" + "cwd": "${workspaceFolder}", + "valuesFormatting": "parseText", + "preLaunchTask": "Build" } ] } \ No newline at end of file diff --git a/SDL2_Core b/SDL2_Core index 9b6ac3c..2f10b3c 160000 --- a/SDL2_Core +++ b/SDL2_Core @@ -1 +1 @@ -Subproject commit 9b6ac3c1455aa0ac3036cef40db80974aa27410e +Subproject commit 2f10b3c1bc8da91c8271495d7b1a45194d02e224 diff --git a/shell.nix b/shell.nix index 2d62d1d..b90816f 100644 --- a/shell.nix +++ b/shell.nix @@ -16,5 +16,6 @@ stdenv.mkDerivation { shellHook = '' export LD_LIBRARY_PATH=${pkgs.libpng}/lib:${pkgs.SDL2}/lib:${pkgs.sdl3}/lib:${pkgs.ncurses}/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=${pkgs.libpng}/lib/pkgconfig:${pkgs.SDL2}/lib/pkgconfig:${pkgs.sdl3}/lib/pkgconfig:${pkgs.ncurses}/lib/pkgconfig:$PKG_CONFIG_PATH + unset TEMP TMP TEMPDIR TMPDIR ''; } diff --git a/src/Makefile b/src/Makefile index 21189ae..76286c5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -11,7 +11,7 @@ SOURCES := \ # Compiler and flags SRC_CC = gcc #SRC_CFLAGS = --std=c17 --pedantic -O3 # RELEASE -SRC_CFLAGS = --std=c17 --pedantic -O1 -g \ +SRC_CFLAGS = --std=c17 --pedantic -O0 -g \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ -Wformat=2 -Wswitch-default -Wswitch-enum -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \