Mesa (master): compiler/glsl: fix include for Android build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Apr 10 19:06:45 UTC 2021


Module: Mesa
Branch: master
Commit: 492c8f1709d3f67e1d77fcc4e69e83d656349e2a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=492c8f1709d3f67e1d77fcc4e69e83d656349e2a

Author: Mauro Rossi <issor.oruam at gmail.com>
Date:   Sat Apr 10 13:18:31 2021 +0200

compiler/glsl: fix include for Android build

Sources outside of src/util path should include "util/string_buffer.h"

Fixes the following building error in Android:

external/mesa/src/compiler/glsl/ast_type.cpp:25:10: fatal error: 'string_buffer.h' file not found
         ^~~~~~~~~~~~~~~~~
1 error generated.

Fixes: eeec9d56ad32 ("compiler/glsl: clean up output")
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10156>

---

 src/compiler/glsl/ast_type.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp
index 9e2fd995d96..ec287dad9e4 100644
--- a/src/compiler/glsl/ast_type.cpp
+++ b/src/compiler/glsl/ast_type.cpp
@@ -22,7 +22,7 @@
  */
 
 #include "ast.h"
-#include "string_buffer.h"
+#include "util/string_buffer.h"
 
 void
 ast_type_specifier::print(void) const



More information about the mesa-commit mailing list