mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Default to threads = cpus(). Correct multithreaded benchmark with threads.
This commit is contained in:
committed by
Christoffer Lerno
parent
1864c69f31
commit
50d2a04c48
@@ -248,6 +248,7 @@ add_executable(c3c
|
||||
src/utils/vmem.c
|
||||
src/utils/vmem.h
|
||||
src/utils/whereami.c
|
||||
src/utils/cpus.c
|
||||
src/compiler/decltable.c
|
||||
src/compiler/mac_support.c
|
||||
src/compiler/tilde_codegen_storeload.c
|
||||
@@ -300,10 +301,10 @@ if(MSVC)
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "using gcc/clang warning switches")
|
||||
target_compile_options(c3c PRIVATE -Wall -Werror -Wno-unknown-pragmas -Wno-unused-result
|
||||
target_link_options(c3c PRIVATE -pthread)
|
||||
target_compile_options(c3c PRIVATE -pthread -Wall -Werror -Wno-unknown-pragmas -Wno-unused-result
|
||||
-Wno-unused-function -Wno-unused-variable -Wno-unused-parameter)
|
||||
if (WIN32)
|
||||
target_link_options(c3c PRIVATE -pthread)
|
||||
target_compile_definitions(c3c PRIVATE USE_PTHREAD=1)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user