Skip to content
Snippets Groups Projects
Commit fc6104a2 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add -shared to the PCH flags to prevent error when using the MESA SDK

parent c8ff8e55
No related branches found
No related tags found
No related merge requests found
###########################################################
# meson build file for binary_c
#
# (c) Robert Izzard 12/11/2020
# (c) Robert Izzard 04/08/2021
#
# Known to work with binary_c 2.2.pre1 using gcc and clang.
#
......@@ -198,7 +198,6 @@ foreach buggy_perl_version : buggy_perls
endif
endforeach
############################################################
# compiler object
#
......@@ -1375,11 +1374,12 @@ if get_option('usepch') == true
_opt,
_pic,
_incdirs,
'-shared', # required to prevent MESA SDK errors
'-MT', 'binary_c.h.gch',
'-MMD',
'-MP',
'-MF', _depfile_path,
'-x', 'c-header'
'-x', 'c-header',
]
pch_sourcefiles = [ _gch ]
cflags += [
......
......@@ -92,12 +92,3 @@
#endif //BINARY_C_H
/*
#define __dummy_function_concat(A,B) A##B
#define __dummy_function2(A) \
static void MAYBE_UNUSED __dummy_function_concat(__dummy_name,A)(void); \
static void MAYBE_UNUSED __dummy_function_concat(__dummy_name,A)(void){return;}
#define __dummy_function __dummy_function2(__COUNTER__)
__dummy_function
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment