From abe41cc2d5413faa8adeb16831f654435b6d0ef0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 15 Jun 2019 14:57:21 +0200 Subject: Add compiler option for number of threads to use (instead of env) --- include/compiler_options.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/compiler_options.h') diff --git a/include/compiler_options.h b/include/compiler_options.h index 1854372..e9ac6e2 100644 --- a/include/compiler_options.h +++ b/include/compiler_options.h @@ -6,6 +6,8 @@ typedef void(*amal_compiler_error_callback)(const char *err_msg, int err_msg_len typedef struct { amal_compiler_error_callback error_callback; void *error_callback_userdata; + /* Number of threads to use. If 0, use the number of threads available on the system */ + unsigned int num_threads; } amal_compiler_options; #endif -- cgit v1.2.3