[PATCH] build: enable developer mode for all working trees

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Wed Aug 10 19:40:58 CEST 2022


Developer mode was detected if `.git` was a directory.
Linked git working trees created by `git worktree add`
contain `.git` file instead of `.git` directory.
Developer mode was not detected for such directories.
Detect developer mode by the presence of `.git` path.

Fixes: bc4617433845 ("build: enable a developer mode setting")
Cc: stable at dpdk.org

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index a32f14024b..7d6643da3a 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,7 @@ developer_mode = false
 if get_option('developer_mode').auto()
     if meson.version().version_compare('>=0.53') # fs module available
         fs = import('fs')
-        developer_mode = fs.is_dir('.git')
+        developer_mode = fs.exists('.git')
     endif
 else
     developer_mode = get_option('developer_mode').enabled()
-- 
2.33.1



More information about the stable mailing list