Skip to content

Commit 42308f7

Browse files
committed
use pthread everywhere, remove c11 threads
1 parent 5f7d477 commit 42308f7

14 files changed

+57
-1297
lines changed

CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ set(LIB_FOLDER F:/Programmation/Libraries)
77

88
include_directories(${LIB_FOLDER}/glfw-3.3.9.bin.WIN64/include)
99
include_directories(include/)
10-
include_directories(include/threads)
1110
include_directories(lib/)
1211
include_directories(src/)
1312

@@ -26,8 +25,8 @@ if( WIN32 )
2625
COMMENT "Copying glfw3.dll to executable directory"
2726
)
2827

29-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra ")
28+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wall -Wextra -pthread")
3029
elseif( UNIX )
3130
target_link_libraries(main m glfw)
32-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -ggdb -Wall -Wextra")
31+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=thread -pthread -g3 -ggdb -Wall -Wextra")
3332
endif()

include/threads/threads.h

-72
This file was deleted.

0 commit comments

Comments
 (0)