Warn against loading gccdeps/msvcdeps options

This commit is contained in:
Thomas Nagy 2017-09-21 17:30:08 +02:00 committed by Thomas Nagy
parent b78ecf361c
commit e64467892c
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 18 additions and 2 deletions

View File

@ -7,9 +7,12 @@ Execute the tasks with gcc -MD, read the dependencies from the .d file
and prepare the dependency calculation for the next run.
This affects the cxx class, so make sure to load Qt5 after this tool.
Usage:
Usage::
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.load('gccdeps')
conf.load('compiler_cxx gccdeps')
"""
import os, re, threading
@ -206,3 +209,6 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', gccdeps_flags)
conf.env.append_unique('ENABLE_GCCDEPS', 'cxx')
def options(opt):
raise ValueError('Do not load gccdeps options')

View File

@ -16,6 +16,13 @@ The technique of gutting scan() and pushing the dependency calculation
down to post_run() is cribbed from gccdeps.py.
This affects the cxx class, so make sure to load Qt5 after this tool.
Usage::
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.load('compiler_cxx msvcdeps')
'''
import os, sys, tempfile, threading
@ -244,3 +251,6 @@ for k in ('c', 'cxx'):
if k in Task.classes:
wrap_compiled_task(k)
def options(opt):
raise ValueError('Do not load msvcdeps options')