From a27a2128ce8f67d74895a721322768c2032400fe Mon Sep 17 00:00:00 2001
From: Neel Chauhan <neel@neelc.org>
Date: Wed, 29 Sep 2021 14:16:20 -0700
Subject: [PATCH] Fix race condition on enums when we bulid with a single core

---
 src/meson.build | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/src/meson.build b/src/meson.build
index ebafc5fd..a671e682 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -16,6 +16,23 @@ vcs_identifier_h = declare_dependency(sources: vcs_tag)
 
 gnome_todo_deps += vcs_identifier_h
 
+#########
+# Enums #
+#########
+
+enum_headers = files(
+  join_paths('animation', 'gtd-animation-enums.h'),
+)
+
+enum_types = 'gtd-enum-types'
+
+sources += gnome.mkenums(
+  enum_types,
+     sources: enum_headers,
+  c_template: enum_types + '.c.template',
+  h_template: enum_types + '.h.template'
+)
+
 ###########
 # Plugins #
 ###########
@@ -43,24 +60,6 @@ gtd_deps = gnome_todo_deps + [
 ]
 
 
-#########
-# Enums #
-#########
-
-enum_headers = files(
-  join_paths('animation', 'gtd-animation-enums.h'),
-)
-
-enum_types = 'gtd-enum-types'
-
-sources += gnome.mkenums(
-  enum_types,
-     sources: enum_headers,
-  c_template: enum_types + '.c.template',
-  h_template: enum_types + '.h.template'
-)
-
-
 ################
 # Header files #
 ################
-- 
GitLab

