From: Peter Morrow Date: Tue, 6 Apr 2021 13:07:57 +0000 (-0700) Subject: goarch: map target os to windows for mingw* TARGET_OS X-Git-Tag: 2020-04.8-dunfell~93 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=099bd78ce80772c42887104a40aa0a92fdaa6965;p=openembedded-core.git goarch: map target os to windows for mingw* TARGET_OS 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 Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 1099b95769..ecd3044edd 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