blob: 8b5316ceccc23d1fc01118aff57858f587d39644 [file] [log] [blame]
From e4a3241f67b63b2c3b5ac018236ad9e7d07adbe8 Mon Sep 17 00:00:00 2001
From: Don <don.j.olmstead@gmail.com>
Date: Thu, 9 May 2019 12:12:42 -0700
Subject: [PATCH 1/2] Add licensing clarification
---
src/compiler/preprocessor/ExpressionParser.cpp | 2 ++
src/compiler/translator/glslang_tab.cpp | 2 ++
src/compiler/translator/glslang_tab.h | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/compiler/preprocessor/ExpressionParser.cpp b/src/compiler/preprocessor/ExpressionParser.cpp
index 1b71ef7..5c2b9e7 100644
--- a/src/compiler/preprocessor/ExpressionParser.cpp
+++ b/src/compiler/preprocessor/ExpressionParser.cpp
@@ -1,5 +1,7 @@
/* A Bison parser, made by GNU Bison 3.0.4. */
+/* Apple Note: For the avoidance of doubt, Apple elects to distribute this file under the terms of the BSD license. */
+
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
diff --git a/src/compiler/translator/glslang_tab.cpp b/src/compiler/translator/glslang_tab.cpp
index e49325c..5fe7c49 100644
--- a/src/compiler/translator/glslang_tab.cpp
+++ b/src/compiler/translator/glslang_tab.cpp
@@ -1,5 +1,7 @@
/* A Bison parser, made by GNU Bison 3.0.4. */
+/* Apple Note: For the avoidance of doubt, Apple elects to distribute this file under the terms of the BSD license. */
+
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
diff --git a/src/compiler/translator/glslang_tab.h b/src/compiler/translator/glslang_tab.h
index 5ffee8a..3774e91 100644
--- a/src/compiler/translator/glslang_tab.h
+++ b/src/compiler/translator/glslang_tab.h
@@ -1,5 +1,7 @@
/* A Bison parser, made by GNU Bison 3.0.4. */
+/* Apple Note: For the avoidance of doubt, Apple elects to distribute this file under the terms of the BSD license. */
+
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
--
2.19.0.605.g01d371f741-goog
From 4b85bdc63dfe66cb25abab5ddd1c475fd68e3ecf Mon Sep 17 00:00:00 2001
From: James Darpinian <jdarpinian@chromium.org>
Date: Wed, 11 Sep 2019 18:12:01 -0700
Subject: [PATCH 2/2] Disable -Wglobal-constructors false positives
---
src/common/utilities.cpp | 3 +++
src/libANGLE/State.cpp | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/common/utilities.cpp b/src/common/utilities.cpp
index a3f0faa..e463694 100644
--- a/src/common/utilities.cpp
+++ b/src/common/utilities.cpp
@@ -6,6 +6,9 @@
// utilities.cpp: Conversion functions and other utility routines.
+// Older clang versions have a false positive on this warning here.
+#pragma clang diagnostic ignored "-Wglobal-constructors"
+
#include "common/utilities.h"
#include <GLSLANG/ShaderVars.h>
#include "common/mathutil.h"
diff --git a/src/libANGLE/State.cpp b/src/libANGLE/State.cpp
index b15fcfc..dca047a 100644
--- a/src/libANGLE/State.cpp
+++ b/src/libANGLE/State.cpp
@@ -6,6 +6,9 @@
// State.cpp: Implements the State class, encapsulating raw GL state.
+// Older clang versions have a false positive on this warning here.
+#pragma clang diagnostic ignored "-Wglobal-constructors"
+
#include "libANGLE/State.h"
#include <string.h>
--
2.19.0.605.g01d371f741-goog