summaryrefslogtreecommitdiffstats
path: root/src/util/mesa-sha1.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-09-04 16:43:22 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2015-09-06 16:11:24 -0400
commit13bfa5201162185005fa9a45f7bc76e5909ab193 (patch)
tree6b81a9395443997e0db17002df135471c57741d7 /src/util/mesa-sha1.c
parente40f32d5626c87d9e77bbc261df3648cd54bd066 (diff)
downloadexternal_mesa3d-13bfa5201162185005fa9a45f7bc76e5909ab193.zip
external_mesa3d-13bfa5201162185005fa9a45f7bc76e5909ab193.tar.gz
external_mesa3d-13bfa5201162185005fa9a45f7bc76e5909ab193.tar.bz2
util: always include sha1 into the build
SHA1 is now used in all builds when HAVE_SHA1 is defined. Adjust src to do the same thing, rather than predicating on shader cache. Fixes: 04e201d0c02 ("mesa: change 'SHADER_SUBST' facility to work with env variables") Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'src/util/mesa-sha1.c')
-rw-r--r--src/util/mesa-sha1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/mesa-sha1.c b/src/util/mesa-sha1.c
index fa28193..7614b21 100644
--- a/src/util/mesa-sha1.c
+++ b/src/util/mesa-sha1.c
@@ -290,6 +290,8 @@ _mesa_sha1_final(struct mesa_sha1 *ctx, unsigned char result[20])
#endif
+#ifdef HAVE_SHA1
+
void
_mesa_sha1_compute(const void *data, size_t size, unsigned char result[20])
{
@@ -314,3 +316,5 @@ _mesa_sha1_format(char *buf, const unsigned char *sha1)
return buf;
}
+
+#endif