xref: /aosp_15_r20/external/toolchain-utils/compiler_wrapper/unsupported_flags.go (revision 760c253c1ed00ce9abd48f8546f08516e57485fe)
1*760c253cSXin Li// Copyright 2019 The ChromiumOS Authors
2*760c253cSXin Li// Use of this source code is governed by a BSD-style license that can be
3*760c253cSXin Li// found in the LICENSE file.
4*760c253cSXin Li
5*760c253cSXin Lipackage main
6*760c253cSXin Li
7*760c253cSXin Lifunc checkUnsupportedFlags(cmd *command) error {
8*760c253cSXin Li	for _, arg := range cmd.Args {
9*760c253cSXin Li		if arg == "-fstack-check" {
10*760c253cSXin Li			return newUserErrorf(`option %q is not supported; crbug/485492`, arg)
11*760c253cSXin Li		}
12*760c253cSXin Li	}
13*760c253cSXin Li	return nil
14*760c253cSXin Li}
15