File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ endif()
107
107
if (APPLE )
108
108
# Apple comboned, include based on arch
109
109
set (CPU_ARCH "combined" )
110
- set (ASM_EXT "all_macho_gas.S" )
110
+ set (ASM_EXT "all_macho_gas.S" )
111
111
elseif (ANDROID OR RPI)
112
112
# Android (Arm/x86_64/Arm64)
113
113
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR RPI)
@@ -176,7 +176,6 @@ if ((CMAKE_C_COMPILER_ID MATCHES "Clang") OR (CMAKE_C_COMPILER_ID MATCHES "GNU")
176
176
endif ()
177
177
add_compile_options ("$<$<CONFIG:Debug>:-D_DEBUG>" )
178
178
add_compile_options ("$<$<CONFIG:Release>:-DNDEBUG>" )
179
-
180
179
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11" )
181
180
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions" )
182
181
sx_remove_compile_options(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " "-fexceptions -frtti" )
Original file line number Diff line number Diff line change @@ -48,13 +48,8 @@ static void job_fib_fn(int index, void* user) {
48
48
int main (int argc , char * argv []) {
49
49
const sx_alloc * alloc = sx_alloc_malloc ();
50
50
sx_job_context * ctx = sx_job_create_context (
51
- alloc ,
52
- & (sx_job_context_desc ){
53
- .num_threads = -1 ,
54
- .thread_init_cb = thread_init ,
55
- .thread_shutdown_cb = thread_shutdown
56
- }
57
- );
51
+ alloc , & (sx_job_context_desc ){ .thread_init_cb = thread_init ,
52
+ .thread_shutdown_cb = thread_shutdown });
58
53
if (!ctx ) {
59
54
puts ("Error: sx_job_create_context failed!" );
60
55
return -1 ;
@@ -85,7 +80,7 @@ int main(int argc, char* argv[]) {
85
80
};
86
81
87
82
puts ("Dispatching jobs ..." );
88
- sx_job_t jhandle = sx_job_dispatch (ctx , jobs , 3 , 0 );
83
+ sx_job_t jhandle = sx_job_dispatch (ctx , jobs , 3 , 0 );
89
84
90
85
puts ("Waiting ..." );
91
86
sx_job_wait_and_del (ctx , jhandle );
You can’t perform that action at this time.
0 commit comments