All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmake: fix typo in toolchain file
@ 2017-10-10 12:00 Øystein Walle
  2017-10-10 12:25 ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Øystein Walle @ 2017-10-10 12:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: Øystein Walle

From: Øystein Walle <ow@datarespons.no>

Signed-off-by: Øystein Walle <ow@datarespons.no>
---
 meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
index 6518408c70..dc8477ea34 100644
--- a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
+++ b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
@@ -1,7 +1,7 @@
 set( CMAKE_SYSTEM_NAME Linux )
 set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE )
 set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS}  CACHE STRING "" FORCE )
-set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
+set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
 set( CMAKE_LDFLAGS_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE )
 
 set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} $ENV{OECORE_NATIVE_SYSROOT} )
-- 
2.14.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] cmake: fix typo in toolchain file
  2017-10-10 12:00 [PATCH] cmake: fix typo in toolchain file Øystein Walle
@ 2017-10-10 12:25 ` Alexander Kanavin
  2017-10-10 12:31   ` Maciej Borzęcki
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2017-10-10 12:25 UTC (permalink / raw)
  To: Øystein Walle, openembedded-core; +Cc: Øystein Walle

On 10/10/2017 03:00 PM, Øystein Walle wrote:

> -set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
> +set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )

Where is the typo and what is it, exactly?

Alex


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cmake: fix typo in toolchain file
  2017-10-10 12:25 ` Alexander Kanavin
@ 2017-10-10 12:31   ` Maciej Borzęcki
  2017-10-10 12:38     ` Øystein Walle
  0 siblings, 1 reply; 7+ messages in thread
From: Maciej Borzęcki @ 2017-10-10 12:31 UTC (permalink / raw)
  To: Alexander Kanavin
  Cc: Øystein Walle, Patches and discussions about the oe-core layer

On Tue, Oct 10, 2017 at 2:25 PM, Alexander Kanavin
<alexander.kanavin@linux.intel.com> wrote:
> On 10/10/2017 03:00 PM, Øystein Walle wrote:
>
>> -set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
>> +set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
>
>
> Where is the typo and what is it, exactly?

-set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )

missing _ between CMAKE and ASM


-- 
Maciej Borzecki
RnDity


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cmake: fix typo in toolchain file
  2017-10-10 12:38     ` Øystein Walle
@ 2017-10-10 12:36       ` Alexander Kanavin
  2017-10-10 12:59         ` [PATCH v2] " Øystein Walle
  2017-10-10 12:58       ` [PATCH] " Philip Balister
  1 sibling, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2017-10-10 12:36 UTC (permalink / raw)
  To: Øystein Walle, Maciej Borzęcki
  Cc: Øystein Walle, Patches and discussions about the oe-core layer

On 10/10/2017 03:38 PM, Øystein Walle wrote:

> I can resend the patch with a better commit message if you like.

Yes please.

Alex


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cmake: fix typo in toolchain file
  2017-10-10 12:31   ` Maciej Borzęcki
@ 2017-10-10 12:38     ` Øystein Walle
  2017-10-10 12:36       ` Alexander Kanavin
  2017-10-10 12:58       ` [PATCH] " Philip Balister
  0 siblings, 2 replies; 7+ messages in thread
From: Øystein Walle @ 2017-10-10 12:38 UTC (permalink / raw)
  To: Maciej Borzęcki
  Cc: Øystein Walle, Patches and discussions about the oe-core layer

On 10 October 2017 at 14:31, Maciej Borzęcki <maciej.borzecki@rndity.com> wrote:
> On Tue, Oct 10, 2017 at 2:25 PM, Alexander Kanavin
>
>> Where is the typo and what is it, exactly?
>
> -set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
>
> missing _ between CMAKE and ASM

Correct. As it is the code defines a variable named "CMAKE" with the
contents "ASM_FLAGS ${CMAKE_C_FLAGS}". As far as CMake is concerned that
is valid and so this will not generate any form of error, but may
result in incorrect flags.

I can resend the patch with a better commit message if you like.

--
Øsse


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cmake: fix typo in toolchain file
  2017-10-10 12:38     ` Øystein Walle
  2017-10-10 12:36       ` Alexander Kanavin
@ 2017-10-10 12:58       ` Philip Balister
  1 sibling, 0 replies; 7+ messages in thread
From: Philip Balister @ 2017-10-10 12:58 UTC (permalink / raw)
  To: Øystein Walle, Maciej Borzęcki
  Cc: Øystein Walle, Patches and discussions about the oe-core layer

On 10/10/2017 05:38 AM, Øystein Walle wrote:
> On 10 October 2017 at 14:31, Maciej Borzęcki <maciej.borzecki@rndity.com> wrote:
>> On Tue, Oct 10, 2017 at 2:25 PM, Alexander Kanavin
>>
>>> Where is the typo and what is it, exactly?
>>
>> -set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
>>
>> missing _ between CMAKE and ASM
> 
> Correct. As it is the code defines a variable named "CMAKE" with the
> contents "ASM_FLAGS ${CMAKE_C_FLAGS}". As far as CMake is concerned that
> is valid and so this will not generate any form of error, but may
> result in incorrect flags.
> 
> I can resend the patch with a better commit message if you like.

That would be nice. I stared at the line for a bit trying to see the
typo also.

Philip


> 
> --
> Øsse
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] cmake: fix typo in toolchain file
  2017-10-10 12:36       ` Alexander Kanavin
@ 2017-10-10 12:59         ` Øystein Walle
  0 siblings, 0 replies; 7+ messages in thread
From: Øystein Walle @ 2017-10-10 12:59 UTC (permalink / raw)
  To: openembedded-core; +Cc: Øystein Walle

From: Øystein Walle <ow@datarespons.no>

The missing underscore makes CMake define a new variable named "CMAKE"
with the contents "ASM_FLAGS ${CMAKE_C_FLAGS}" instead of a variable
named "CMAKE_ASM_FLAGS" with contents equal to "CMAKE_C_FLAGS". It seems
clear that the intention was to assign "CMAKE_ASM_FLAGS".

CMake uses variables named "CMAKE_<LANG>_FLAGS" for defining default
compiler flags for a given language <LANG>. Leaving this flag unset may
have unintended consequences. Not doing so is however not an error as
far as CMake is concerned so it is silently accepted.

Signed-off-by: Øystein Walle <ow@datarespons.no>
---
 meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
index 6518408c70..dc8477ea34 100644
--- a/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
+++ b/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
@@ -1,7 +1,7 @@
 set( CMAKE_SYSTEM_NAME Linux )
 set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE )
 set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS}  CACHE STRING "" FORCE )
-set( CMAKE ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
+set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
 set( CMAKE_LDFLAGS_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE )
 
 set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} $ENV{OECORE_NATIVE_SYSROOT} )
-- 
2.14.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-10 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 12:00 [PATCH] cmake: fix typo in toolchain file Øystein Walle
2017-10-10 12:25 ` Alexander Kanavin
2017-10-10 12:31   ` Maciej Borzęcki
2017-10-10 12:38     ` Øystein Walle
2017-10-10 12:36       ` Alexander Kanavin
2017-10-10 12:59         ` [PATCH v2] " Øystein Walle
2017-10-10 12:58       ` [PATCH] " Philip Balister

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.