All of lore.kernel.org
 help / color / mirror / Atom feed
* [dunfell][PATCH 1/2] goarch: map target os to windows for mingw* TARGET_OS
@ 2021-04-06 13:07 Peter Morrow
  2021-04-06 13:07 ` [dunfell][PATCH 2/2] go_1.14: don't set -buildmode=pie when building for windows targets Peter Morrow
  2021-04-06 15:21 ` [dunfell][PATCH 1/2] goarch: map target os to windows for mingw* TARGET_OS Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Morrow @ 2021-04-06 13:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: peter.morrow, raj.khem

mingw32/mingw64 is not a supported value for GOOS, so map from 'mingw*' to
'windows' to enable building for windows targets.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
---
 meta/classes/goarch.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 1099b95..ecd3044 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -114,6 +114,8 @@ def go_map_mips(a, f, d):
 def go_map_os(o, d):
     if o.startswith('linux'):
         return 'linux'
+    elif o.startswith('mingw'):
+        return 'windows'
     return o
 
 
-- 
1.8.3.1


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

end of thread, other threads:[~2021-04-09  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 13:07 [dunfell][PATCH 1/2] goarch: map target os to windows for mingw* TARGET_OS Peter Morrow
2021-04-06 13:07 ` [dunfell][PATCH 2/2] go_1.14: don't set -buildmode=pie when building for windows targets Peter Morrow
2021-04-06 15:21   ` Khem Raj
2021-04-06 15:21 ` [dunfell][PATCH 1/2] goarch: map target os to windows for mingw* TARGET_OS Khem Raj
2021-04-09  9:31   ` Peter Morrow

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.