raiseInvalidCode('Global arguments can not be set in subprojects because there is no way to make that reliable.')
ifself.global_args_frozen:
raiseInvalidCode('Tried to set global arguments after they have become immutable.')
raiseInvalidCode('Tried to set global arguments after a build target has been declared.\nThis is not permitted. Please declare all global arguments before your targets.')
ifnot'language'inkwargs:
raiseInvalidCode('Missing language definition in add_global_arguments')