]> code.ossystems Code Review - openembedded-core.git/commitdiff
goarch: map target os to windows for mingw* TARGET_OS
authorPeter Morrow <pemorrow@linux.microsoft.com>
Tue, 6 Apr 2021 13:07:57 +0000 (06:07 -0700)
committerSteve Sakoman <steve@sakoman.com>
Mon, 19 Apr 2021 14:27:15 +0000 (04:27 -1000)
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>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/goarch.bbclass

index 1099b9576994f1786ef5e6ede51eabab32e9b994..ecd3044eddd7e3cf5ae79f5a44b4bff5e62ec52c 100644 (file)
@@ -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