From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64CCFA0545; Wed, 10 Aug 2022 19:41:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03E644068E; Wed, 10 Aug 2022 19:41:28 +0200 (CEST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mails.dpdk.org (Postfix) with ESMTP id 0CC054067C; Wed, 10 Aug 2022 19:41:27 +0200 (CEST) Received: by mail-lj1-f169.google.com with SMTP id l10so12237574lje.7; Wed, 10 Aug 2022 10:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=DDEpplI1f6ZuLQGWssBsI51UPjw1MEskh6jJvcX50As=; b=LjLx//JO3eA/eTpH/FY6YUuZPTKuO0pT4Lw+E3Ba8683YbOHOtSYvRWg4XoL8C3sHq MuIhZbdwLV1czRf6ipwxSYEfyU73O1Y5dlv6h+xXumwFb0dyRcDKMn71is1zO3/l8NWi 61Un0Vl4n5Xdwcmy9CNiYJEMu8pK60YG3+SSwOYIlFl0WmZW+mCw4wwypz27k8fk+CTC fX+T00OLT8EWKsX/W4p1kFSelLtPYvRDQQptzrEsZJIIZMeMFEtfFwFXciq4yBaUKkwc 029/d3906emv9r1R1UPIJ5Ks8osQS1mjaBur25ULcNR9mXc9U1p2Ux+in9BrthcR4Wkv 1KUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=DDEpplI1f6ZuLQGWssBsI51UPjw1MEskh6jJvcX50As=; b=Dfh+xQQAKoUtigjLGXkJJGhWCNUQ3tFVx2HKozmHZzrtBeubVHSH4TXg/wim84I5Xk vNzAowPzFnIOGSpc2R9qI3L21NUZ3NjPMVkn1jOg8/uHxNt5nPzZZ/PH61bJTPI1B2Ah F/PBmiN8im5M77a2dB6rL+qFPqXCk7jNLWXfCcK/lteLsIW9i3oQkpE4zerYlFLdHi+4 5lK3ar4lWcqLx6yBY8aPJTk+bySZig91zNeZ0ABTF2cPBXuRos6IrTmnTRmE/EDqUN48 CDGYis8596PdyrRTD9zmPKW0lrfrnCbAmgS5gqpvk1I9b0d6q5w98oXJL3Ml9afyymzK BbBg== X-Gm-Message-State: ACgBeo06aUEkDjPsuNZ9FVKHp5fO2np5F/wrz0AGJhrPtK3KTeuS/tqo D+jS+6hn0L3X/12vgclGSFtDCEj5nN4= X-Google-Smtp-Source: AA6agR7D6bcN5Fe9EKtU5PG+qhBfLNcM/yjIioe6MmQeRXnNmOE+25CQWYqM+sT7/97QxtG1XNgTOQ== X-Received: by 2002:a2e:b7c7:0:b0:25e:5632:e765 with SMTP id p7-20020a2eb7c7000000b0025e5632e765mr9381057ljo.377.1660153285982; Wed, 10 Aug 2022 10:41:25 -0700 (PDT) Received: from sovereign.. (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id d1-20020a05651221c100b0048b052a7980sm410937lft.168.2022.08.10.10.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:41:25 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , stable@dpdk.org, Bruce Richardson Subject: [PATCH] build: enable developer mode for all working trees Date: Wed, 10 Aug 2022 20:40:58 +0300 Message-Id: <20220810174058.604568-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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@dpdk.org Signed-off-by: Dmitry Kozlyuk --- 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