summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-15 20:21:58 -0800
committerFilipe Coelho <falktx@falktx.com>2021-07-28 21:01:14 +0100
commit48558c054199d19659a04a1793f5f46217f51030 (patch)
treef78e87ffe82035d2d116ca3497810406b2936c3a
parent8d41e4357b39358d101198087cf2b23ef47c7ba6 (diff)
downloadjack2-48558c054199d19659a04a1793f5f46217f51030.tar.gz
example-clients: Use c++ compiler for jack_simdtests
It uses c++ sources and runtime therefore its best to use c++ compiler to build it so it can find the correct runtime, cross compiling with clang fails x86_64-yoe-linux-ld: example-clients/simdtests.cpp.28.o: undefined reference to symbol '__cxa_call_unexpected@@CXXABI_1.3' Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--example-clients/wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/example-clients/wscript b/example-clients/wscript
index 7e0b9931..c452b688 100644
--- a/example-clients/wscript
+++ b/example-clients/wscript
@@ -49,10 +49,15 @@ def build(bld):
else:
use = ['clientlib']
+ if example_program == 'jack_simdtests':
+ ftrs = 'cxx cxxprogram'
+ else:
+ ftrs = 'c cprogram'
+
if bld.env['IS_MACOSX']:
- prog = bld(features='c cprogram', framework = ['Foundation'])
+ prog = bld(features = ftrs, framework = ['Foundation'])
else:
- prog = bld(features='c cprogram')
+ prog = bld(features = ftrs)
prog.includes = os_incdir + ['../common/jack', '../common']
prog.source = example_program_source
prog.use = use