summaryrefslogtreecommitdiff
path: root/external/skia/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-06-25 10:35:00 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-06-25 16:16:49 +0200
commit2eeb6822110205f76eb908b5900526723cc8007c (patch)
tree87e59aa1682217154cbeea48203e125bdf146b5f /external/skia/source
parentc3f8702241b625db994bcb059d8c91c25fd43e53 (diff)
log properly the compiler used to compile Skia
Using #define's directly from VCL will report the compiler used to compile VCL, which may be different from the one used for Skia. Also truncate the log file on opening. Change-Id: Iddf613613df20505f1abe1dd5468dcc8c7041410 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97090 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'external/skia/source')
-rw-r--r--external/skia/source/skia_compiler.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/external/skia/source/skia_compiler.cxx b/external/skia/source/skia_compiler.cxx
new file mode 100644
index 000000000000..6339a4a4f900
--- /dev/null
+++ b/external/skia/source/skia_compiler.cxx
@@ -0,0 +1,20 @@
+/*
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include <skia_compiler.hxx>
+
+// Get the type of compiler that Skia is compiled with.
+const char* skia_compiler_name()
+{
+#if defined __clang__
+ return "Clang";
+#elif defined __GNUC__
+ return "GCC";
+#elif defined _MSC_VER
+ return "MSVC";
+#else
+ return "?";
+#endif
+}