diff options
author | David Robillard <d@drobilla.net> | 2020-10-21 14:43:04 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-21 15:43:29 +0200 |
commit | 968289f731d2af02670e0c33bc8c88f5f324caa7 (patch) | |
tree | fde166f562b447d975ab27a9a554c248bc10a559 /wscript | |
parent | 4857f9b76f351b2aaad2e61b3635f45570be6823 (diff) | |
download | pugl-968289f731d2af02670e0c33bc8c88f5f324caa7.tar.gz pugl-968289f731d2af02670e0c33bc8c88f5f324caa7.tar.bz2 pugl-968289f731d2af02670e0c33bc8c88f5f324caa7.zip |
Add no-cxx configure option
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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') |