This should be a warnings.warn, or _logger.warn(), not printed to stdout.
Also, this logic would give weird results if a user specifies both -march=native and -march=something-else. I think g++ uses the last one by default, but here it would always use something-else, because -march=native has been removed previously.