# Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
# (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License that accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
-# WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
##\r
\r
[Defines]\r
gEfiRegularExpressionProtocolGuid ## PRODUCES\r
\r
[BuildOptions]\r
+ # Enable STDARG for variable arguments\r
+ *_*_*_CC_FLAGS = -DHAVE_STDARG_H\r
+\r
# Override MSFT build option to remove /Oi and /GL\r
MSFT:*_*_*_CC_FLAGS = /GL-\r
INTEL:*_*_*_CC_FLAGS = /Oi-\r
# Oniguruma: signed and unsigned mismatch/cast\r
MSFT:*_*_*_CC_FLAGS = /wd4018 /wd4245 /wd4389\r
\r
- # Oniguruma: error: variable 'fp' set but not used\r
- GCC:*_*_*_CC_FLAGS = -Wno-error=unused-but-set-variable\r
-\r
# Oniguruma: tag_end in parse_callout_of_name\r
GCC:*_*_*_CC_FLAGS = -Wno-error=maybe-uninitialized\r
+\r
+ # Not add -Wno-error=maybe-uninitialized option for XCODE\r
+ # XCODE doesn't know this option\r
+ XCODE:*_*_*_CC_FLAGS =\r