mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
all: update build constraints to Go 1.17
Do it all at once in preparation for Go 1.18 support. To make this commit, I've simply modified the `fmt-check` Makefile target to rewrite files instead of listing the differences. So this is a fully mechanical change, it should not have introduced any errors.
This commit is contained in:
committed by
Ron Evans
parent
aa8e0bb509
commit
77ec9b6369
@@ -1,3 +1,4 @@
|
||||
//go:build arduino
|
||||
// +build arduino
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_mega1280
|
||||
// +build arduino_mega1280
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_mega2560
|
||||
// +build arduino_mega2560
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_mkr1000
|
||||
// +build arduino_mkr1000
|
||||
|
||||
// This contains the pin mappings for the Arduino MKR1000 board.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_mkrwifi1010
|
||||
// +build arduino_mkrwifi1010
|
||||
|
||||
// This contains the pin mappings for the Arduino MKR WiFi 1010 board.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_nano
|
||||
// +build arduino_nano
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build arduino_nano33
|
||||
// +build arduino_nano33
|
||||
|
||||
// This contains the pin mappings for the Arduino Nano33 IoT board.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && arduino_zero
|
||||
// +build sam,atsamd21,arduino_zero
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build (avr && atmega328p) || arduino || arduino_nano
|
||||
// +build avr,atmega328p arduino arduino_nano
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build (sam && atsamd21) || arduino_nano33 || circuitplay_express
|
||||
// +build sam,atsamd21 arduino_nano33 circuitplay_express
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build atsame54_xpro
|
||||
// +build atsame54_xpro
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build circuitplay_bluefruit
|
||||
// +build circuitplay_bluefruit
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build circuitplay_express
|
||||
// +build circuitplay_express
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build clue_alpha
|
||||
// +build clue_alpha
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build digispark
|
||||
// +build digispark
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build esp32_coreboard_v2
|
||||
// +build esp32_coreboard_v2
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build hifive1b
|
||||
// +build hifive1b
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && feather_m0
|
||||
// +build sam,atsamd21,feather_m0
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_m4_can
|
||||
// +build feather_m4_can
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_m4
|
||||
// +build feather_m4
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_nrf52840_sense
|
||||
// +build feather_nrf52840_sense
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_nrf52840
|
||||
// +build feather_nrf52840
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_stm32f405
|
||||
// +build feather_stm32f405
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build feather_rp2040
|
||||
// +build feather_rp2040
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build grandcentral_m4
|
||||
// +build grandcentral_m4
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build hifive1b
|
||||
// +build hifive1b
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build fe310 && hifive1b
|
||||
// +build fe310,hifive1b
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && itsybitsy_m0
|
||||
// +build sam,atsamd21,itsybitsy_m0
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build itsybitsy_m4
|
||||
// +build itsybitsy_m4
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build itsybitsy_nrf52840
|
||||
// +build itsybitsy_nrf52840
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build maixbit
|
||||
// +build maixbit
|
||||
|
||||
// Chip datasheet: https://s3.cn-north-1.amazonaws.com.cn/dl.kendryte.com/documents/kendryte_datasheet_20181011163248_en.pdf
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build lgt92
|
||||
// +build lgt92
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build m5stack
|
||||
// +build m5stack
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build m5stack_core2
|
||||
// +build m5stack_core2
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build maixbit
|
||||
// +build maixbit
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build k210 && maixbit
|
||||
// +build k210,maixbit
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build matrixportal_m4
|
||||
// +build matrixportal_m4
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build mdbt50qrx
|
||||
// +build mdbt50qrx
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build metro_m4_airlift
|
||||
// +build metro_m4_airlift
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build microbit_v2
|
||||
// +build microbit_v2
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build microbit
|
||||
// +build microbit
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nano_rp2040
|
||||
// +build nano_rp2040
|
||||
|
||||
// This contains the pin mappings for the Arduino Nano RP2040 Connect board.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nicenano
|
||||
// +build nicenano
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nodemcu
|
||||
// +build nodemcu
|
||||
|
||||
// Pinout for the NodeMCU dev kit.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nrf52840_mdk_usb_dongle
|
||||
// +build nrf52840_mdk_usb_dongle
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nrf52840_mdk
|
||||
// +build nrf52840_mdk
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nucleof103rb
|
||||
// +build nucleof103rb
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nucleof722ze
|
||||
// +build nucleof722ze
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nucleol031k6
|
||||
// +build nucleol031k6
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nucleol432kc
|
||||
// +build nucleol432kc
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nucleol552ze
|
||||
// +build nucleol552ze
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build p1am_100
|
||||
// +build p1am_100
|
||||
|
||||
// This contains the pin mappings for the ProductivityOpen P1AM-100 board.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build particle_argon
|
||||
// +build particle_argon
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build particle_boron
|
||||
// +build particle_boron
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build particle_xenon
|
||||
// +build particle_xenon
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pca10031
|
||||
// +build pca10031
|
||||
|
||||
// pca10031 is a nrf51 based dongle, intended for use in wireless applications.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pca10040
|
||||
// +build pca10040
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pca10056
|
||||
// +build pca10056
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pca10059
|
||||
// +build pca10059
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pico
|
||||
// +build pico
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pinetime_devkit0
|
||||
// +build pinetime_devkit0
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pybadge
|
||||
// +build pybadge
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && pygamer
|
||||
// +build sam,atsamd51,pygamer
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build pyportal
|
||||
// +build pyportal
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && qtpy
|
||||
// +build sam,atsamd21,qtpy
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build reelboard
|
||||
// +build reelboard
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build stm32f469disco
|
||||
// +build stm32f469disco
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build nxp && mk66f18 && teensy36
|
||||
// +build nxp,mk66f18,teensy36
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build teensy40
|
||||
// +build teensy40
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && trinket_m0
|
||||
// +build sam,atsamd21,trinket_m0
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build wioterminal
|
||||
// +build wioterminal
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build x9pro
|
||||
// +build x9pro
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && xiao
|
||||
// +build sam,atsamd21,xiao
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam
|
||||
// +build sam
|
||||
|
||||
// This is the definition for I2S bus functions.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega
|
||||
// +build avr,atmega
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega1280
|
||||
// +build avr,atmega1280
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega1284p
|
||||
// +build avr,atmega1284p
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega2560
|
||||
// +build avr,atmega2560
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega328p
|
||||
// +build avr,atmega328p
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build avr && atmega328pb
|
||||
// +build avr,atmega328pb
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21
|
||||
// +build sam,atsamd21
|
||||
|
||||
// Peripheral abstraction layer for the atsamd21.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && atsamd21e18
|
||||
// +build sam,atsamd21,atsamd21e18
|
||||
|
||||
// Peripheral abstraction layer for the atsamd21.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd21 && atsamd21g18
|
||||
// +build sam,atsamd21,atsamd21g18
|
||||
|
||||
// Peripheral abstraction layer for the atsamd21.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && atsamd51g19
|
||||
// +build sam,atsamd51,atsamd51g19
|
||||
|
||||
// Peripheral abstraction layer for the atsamd51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && atsamd51j19
|
||||
// +build sam,atsamd51,atsamd51j19
|
||||
|
||||
// Peripheral abstraction layer for the atsamd51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && atsamd51j20
|
||||
// +build sam,atsamd51,atsamd51j20
|
||||
|
||||
// Peripheral abstraction layer for the atsamd51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && atsamd51p19
|
||||
// +build sam,atsamd51,atsamd51p19
|
||||
|
||||
// Peripheral abstraction layer for the atsamd51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsamd51 && atsamd51p20
|
||||
// +build sam,atsamd51,atsamd51p20
|
||||
|
||||
// Peripheral abstraction layer for the atsamd51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsame51 && atsame51j19
|
||||
// +build sam,atsame51,atsame51j19
|
||||
|
||||
// Peripheral abstraction layer for the atsame51.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build sam && atsame5x && atsame54p20
|
||||
// +build sam,atsame5x,atsame54p20
|
||||
|
||||
// Peripheral abstraction layer for the atsame54.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build (sam && atsame51) || (sam && atsame54)
|
||||
// +build sam,atsame51 sam,atsame54
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build attiny85
|
||||
// +build attiny85
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build esp32
|
||||
// +build esp32
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build esp32c3
|
||||
// +build esp32c3
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build esp8266
|
||||
// +build esp8266
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build fe310
|
||||
// +build fe310
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build gameboyadvance
|
||||
// +build gameboyadvance
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !baremetal
|
||||
// +build !baremetal
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !baremetal && !arduino_mkr1000 && !arduino_mkrwifi1010 && !arduino_nano33 && !arduino_zero && !circuitplay_express && !feather_m0 && !feather_m4 && !grandcentral_m4 && !itsybitsy_m0 && !itsybitsy_m4 && !matrixportal_m4 && !metro_m4_airlift && !p1am_100 && !pybadge && !pygamer && !pyportal && !qtpy && !trinket_m0 && !wioterminal && !xiao
|
||||
// +build !baremetal,!arduino_mkr1000,!arduino_mkrwifi1010,!arduino_nano33,!arduino_zero,!circuitplay_express,!feather_m0,!feather_m4,!grandcentral_m4,!itsybitsy_m0,!itsybitsy_m4,!matrixportal_m4,!metro_m4_airlift,!p1am_100,!pybadge,!pygamer,!pyportal,!qtpy,!trinket_m0,!wioterminal,!xiao
|
||||
|
||||
package machine
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build k210
|
||||
// +build k210
|
||||
|
||||
package machine
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user