From 968289f731d2af02670e0c33bc8c88f5f324caa7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 14:43:04 +0200 Subject: Add no-cxx configure option --- wscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wscript b/wscript index 2261e7c..5fa55c3 100644 --- a/wscript +++ b/wscript @@ -32,6 +32,7 @@ def options(ctx): opts, {'all-headers': 'install complete header implementation', 'no-gl': 'do not build OpenGL support', + 'no-cxx': 'do not build C++ examples', 'no-cairo': 'do not build Cairo support', 'no-static': 'do not build static library', 'no-shared': 'do not build shared library'}) @@ -42,10 +43,11 @@ def options(ctx): def configure(conf): conf.load('compiler_c', cache=True) - try: - conf.load('compiler_cxx', cache=True) - except Exception: - pass + if not Options.options.no_cxx: + try: + conf.load('compiler_cxx', cache=True) + except Exception: + pass conf.load('autowaf', cache=True) autowaf.set_c_lang(conf, 'c99') -- cgit v1.2.1