Message ID | 20250730162112.67549-1-nikhilr5@kpit.com |
---|---|
State | New |
Headers | show |
Series | [master] cmake: Enable debugger support in CMake | expand |
On Wed, Jul 30, 2025 at 9:21 AM Nikhil via lists.openembedded.org <nikhil.r=kpit.com@lists.openembedded.org> wrote: > > Starting from CMake version 3.27 support for interactive debugging of CMake > scripts and configurations was added. However, by default the `nativesdk-cmake` > is compiled with debugger support turned off. This change enables it. > > Signed-off-by: Nikhil R <nikhilr5@kpit.com> > --- > meta/recipes-devtools/cmake/cmake_4.0.3.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > index 7d8b8cac65..604e306667 100644 > --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb > +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > @@ -43,7 +43,7 @@ EXTRA_OECMAKE = " \ > -DKWSYS_CHAR_IS_SIGNED=1 \ > -DBUILD_CursesDialog=0 \ > -DKWSYS_LFS_WORKS=1 \ > - -DCMake_ENABLE_DEBUGGER=0 \ > + -DCMake_ENABLE_DEBUGGER=1 \ Does it impact cmake execution time in some negative way ? > " > > do_install:append:class-nativesdk() { > -- > 2.34.1 > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#221135): https://lists.openembedded.org/g/openembedded-core/message/221135 > Mute This Topic: https://lists.openembedded.org/mt/114451722/1997914 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
Hi Khem, Build time of cmake without Debugger support time : 8m9.082s Build time of cmake with Debugger support time: 8m35.592s Regards, Nikhil R KPIT Technologies Limited ________________________________ From: Khem Raj <raj.khem@gmail.com> Sent: Wednesday, July 30, 2025 9:57 PM To: Nikhil R <Nikhil.R@kpit.com> Cc: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> Subject: Re: [OE-core][master][PATCH] cmake: Enable debugger support in CMake Caution: This email originated from outside of the KPIT. Do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, Jul 30, 2025 at 9:21 AM Nikhil via lists.openembedded.org <nikhil.r=kpit.com@lists.openembedded.org> wrote: > > Starting from CMake version 3.27 support for interactive debugging of CMake > scripts and configurations was added. However, by default the `nativesdk-cmake` > is compiled with debugger support turned off. This change enables it. > > Signed-off-by: Nikhil R <nikhilr5@kpit.com> > --- > meta/recipes-devtools/cmake/cmake_4.0.3.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > index 7d8b8cac65..604e306667 100644 > --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb > +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > @@ -43,7 +43,7 @@ EXTRA_OECMAKE = " \ > -DKWSYS_CHAR_IS_SIGNED=1 \ > -DBUILD_CursesDialog=0 \ > -DKWSYS_LFS_WORKS=1 \ > - -DCMake_ENABLE_DEBUGGER=0 \ > + -DCMake_ENABLE_DEBUGGER=1 \ Does it impact cmake execution time in some negative way ? > " > > do_install:append:class-nativesdk() { > -- > 2.34.1 > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#221135): https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fg%2Fopenembedded-core%2Fmessage%2F221135&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704869072%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=OI5zbb7hhJvfovC657Hr4GOJ1ti%2FSiz0TPGLgOdlYgo%3D&reserved=0<https://lists.openembedded.org/g/openembedded-core/message/221135> > Mute This Topic: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fmt%2F114451722%2F1997914&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704891799%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FK9lloAg4hSREUmOG9XtHqYVWpsGG43X37upY2EXRU8%3D&reserved=0<https://lists.openembedded.org/mt/114451722/1997914> > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fg%2Fopenembedded-core%2Funsub&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704901584%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=u56z0ckHVyDhDdnRaYxj%2F%2B6%2Bw%2B6XaOy%2BfE2OSXYiBZQ%3D&reserved=0<https://lists.openembedded.org/g/openembedded-core/unsub> [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
The question was about whether this slows down build times of cmake-driven components, not build time of cmake itself (which does seem notably slower neverthless). This probably should be a cmake PACKAGECONFIG, and off by default. Alex On Thu, 31 Jul 2025 at 12:25, Nikhil via lists.openembedded.org <nikhil.r=kpit.com@lists.openembedded.org> wrote: > > Hi Khem, > > Build time of cmake without Debugger support > time : 8m9.082s > > Build time of cmake with Debugger support > time: 8m35.592s > > > Regards, > > Nikhil R > > KPIT Technologies Limited > > > ________________________________ > From: Khem Raj <raj.khem@gmail.com> > Sent: Wednesday, July 30, 2025 9:57 PM > To: Nikhil R <Nikhil.R@kpit.com> > Cc: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> > Subject: Re: [OE-core][master][PATCH] cmake: Enable debugger support in CMake > > Caution: This email originated from outside of the KPIT. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > On Wed, Jul 30, 2025 at 9:21 AM Nikhil via lists.openembedded.org > <nikhil.r=kpit.com@lists.openembedded.org> wrote: > > > > Starting from CMake version 3.27 support for interactive debugging of CMake > > scripts and configurations was added. However, by default the `nativesdk-cmake` > > is compiled with debugger support turned off. This change enables it. > > > > Signed-off-by: Nikhil R <nikhilr5@kpit.com> > > --- > > meta/recipes-devtools/cmake/cmake_4.0.3.bb | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > index 7d8b8cac65..604e306667 100644 > > --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > @@ -43,7 +43,7 @@ EXTRA_OECMAKE = " \ > > -DKWSYS_CHAR_IS_SIGNED=1 \ > > -DBUILD_CursesDialog=0 \ > > -DKWSYS_LFS_WORKS=1 \ > > - -DCMake_ENABLE_DEBUGGER=0 \ > > + -DCMake_ENABLE_DEBUGGER=1 \ > > Does it impact cmake execution time in some negative way ? > > > " > > > > do_install:append:class-nativesdk() { > > -- > > 2.34.1 > > > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. > > > > > > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#221189): https://lists.openembedded.org/g/openembedded-core/message/221189 > Mute This Topic: https://lists.openembedded.org/mt/114451722/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Thu, Jul 31, 2025 at 3:24 AM Nikhil R <Nikhil.R@kpit.com> wrote: > > Hi Khem, > > Build time of cmake without Debugger support > time : 8m9.082s > > Build time of cmake with Debugger support > time: 8m35.592s Thats just for cmake's own build I suppose. I was wondering about cmake's execution time, when it is used to build a project something like llvm/clang do_configure/do_compile tasks might show it > > > Regards, > > Nikhil R > > KPIT Technologies Limited > > > ________________________________ > From: Khem Raj <raj.khem@gmail.com> > Sent: Wednesday, July 30, 2025 9:57 PM > To: Nikhil R <Nikhil.R@kpit.com> > Cc: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> > Subject: Re: [OE-core][master][PATCH] cmake: Enable debugger support in CMake > > Caution: This email originated from outside of the KPIT. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > On Wed, Jul 30, 2025 at 9:21 AM Nikhil via lists.openembedded.org > <nikhil.r=kpit.com@lists.openembedded.org> wrote: > > > > Starting from CMake version 3.27 support for interactive debugging of CMake > > scripts and configurations was added. However, by default the `nativesdk-cmake` > > is compiled with debugger support turned off. This change enables it. > > > > Signed-off-by: Nikhil R <nikhilr5@kpit.com> > > --- > > meta/recipes-devtools/cmake/cmake_4.0.3.bb | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > index 7d8b8cac65..604e306667 100644 > > --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb > > @@ -43,7 +43,7 @@ EXTRA_OECMAKE = " \ > > -DKWSYS_CHAR_IS_SIGNED=1 \ > > -DBUILD_CursesDialog=0 \ > > -DKWSYS_LFS_WORKS=1 \ > > - -DCMake_ENABLE_DEBUGGER=0 \ > > + -DCMake_ENABLE_DEBUGGER=1 \ > > Does it impact cmake execution time in some negative way ? > > > " > > > > do_install:append:class-nativesdk() { > > -- > > 2.34.1 > > > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#221135): https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fg%2Fopenembedded-core%2Fmessage%2F221135&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704869072%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=OI5zbb7hhJvfovC657Hr4GOJ1ti%2FSiz0TPGLgOdlYgo%3D&reserved=0 > > Mute This Topic: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fmt%2F114451722%2F1997914&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704891799%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FK9lloAg4hSREUmOG9XtHqYVWpsGG43X37upY2EXRU8%3D&reserved=0 > > Group Owner: openembedded-core+owner@lists.openembedded.org > > Unsubscribe: https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.openembedded.org%2Fg%2Fopenembedded-core%2Funsub&data=05%7C02%7Cnikhil.r%40kpit.com%7C76cd179f4ce14b6b0cff08ddcf8602b1%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C638894896704901584%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=u56z0ckHVyDhDdnRaYxj%2F%2B6%2Bw%2B6XaOy%2BfE2OSXYiBZQ%3D&reserved=0 [raj.khem@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > > > This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb index 7d8b8cac65..604e306667 100644 --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb @@ -43,7 +43,7 @@ EXTRA_OECMAKE = " \ -DKWSYS_CHAR_IS_SIGNED=1 \ -DBUILD_CursesDialog=0 \ -DKWSYS_LFS_WORKS=1 \ - -DCMake_ENABLE_DEBUGGER=0 \ + -DCMake_ENABLE_DEBUGGER=1 \ " do_install:append:class-nativesdk() {
Starting from CMake version 3.27 support for interactive debugging of CMake scripts and configurations was added. However, by default the `nativesdk-cmake` is compiled with debugger support turned off. This change enables it. Signed-off-by: Nikhil R <nikhilr5@kpit.com> --- meta/recipes-devtools/cmake/cmake_4.0.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.