Skip to content

Commit

Permalink
Merge pull request #723 from awschult002/sdl_intrin
Browse files Browse the repository at this point in the history
disables intrinsics on SDL demos
  • Loading branch information
RobLoach authored Nov 5, 2024
2 parents 6566d90 + b6a7791 commit 985ddcb
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion demo/sdl_opengl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Flags
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H

SRC = main.c
OBJ = $(SRC:.c=.o)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengl2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* ===============================================================*/
/* This are some code examples to provide a small overview of what can be
* done with this library. To try out an example uncomment the defines */
/*#define INCLUDE_ALL */
#define INCLUDE_ALL
/*#define INCLUDE_STYLE */
/*#define INCLUDE_CALCULATOR */
/*#define INCLUDE_CANVAS */
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Flags
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H

SRC = main.c
OBJ = $(SRC:.c=.o)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_opengles2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Flags
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H

SRC = main.c
OBJ = $(SRC:.c=.o)
Expand Down
2 changes: 1 addition & 1 deletion demo/sdl_renderer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Flags
CFLAGS += -std=c89 -pedantic -O0
CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H
CFLAGS += `sdl2-config --cflags`

SRC = main.c
Expand Down
1 change: 1 addition & 0 deletions demo/sdl_vulkan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BIN = demo

# Flags
CFLAGS += -std=c89 -Wall -Wextra -pedantic -fsanitize=address -O2
CFLAGS += -DSDL_DISABLE_IMMINTRIN_H

SRC = main.c
OBJ = $(SRC:.c=.o)
Expand Down
6 changes: 3 additions & 3 deletions demo/x11_opengl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Compiler
CC = clang
CC ?= clang
DCC = gcc

# Flags
Expand All @@ -13,11 +13,11 @@ OBJ = $(SRC:.c=.o)

# Modes
.PHONY: gcc
gcc: CC = gcc
gcc: CC ?= gcc
gcc: $(BIN)

.PHONY: clang
clang: CC = clang
clang: CC ?= clang
clang: $(BIN)

$(BIN):
Expand Down
6 changes: 3 additions & 3 deletions demo/x11_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN = demo

# Compiler
CC = clang
CC ?= clang
DCC = gcc

# Flags
Expand All @@ -13,11 +13,11 @@ OBJ = $(SRC:.c=.o)

# Modes
.PHONY: gcc
gcc: CC = gcc
gcc: CC ?= gcc
gcc: $(BIN)

.PHONY: clang
clang: CC = clang
clang: CC ?= clang
clang: $(BIN)

$(BIN):
Expand Down

0 comments on commit 985ddcb

Please sign in to comment.