diff options
author | Ayke van Laethem <[email protected]> | 2020-04-04 16:42:19 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2020-04-05 16:16:57 +0200 |
commit | cbaa58a2d9f4c29a2f0fbd79130fee62b8a1f72a (patch) | |
tree | fea297cf433cd52dcb0d587793d98a7b87a609a0 /src/runtime/runtime_fe310.go | |
parent | 46345aade6295cbe22c0911f09b1f4e9358bb841 (diff) | |
download | tinygo-cbaa58a2d9f4c29a2f0fbd79130fee62b8a1f72a.tar.gz tinygo-cbaa58a2d9f4c29a2f0fbd79130fee62b8a1f72a.zip |
all: change //go:export to //export
This is the kind that is used in Go (actually CGo) for exporting
functions. I think it's best to use //export instead of our custom
//go:export pragma, for consistency (they are equivalent in TinyGo).
Therefore I've updated all instances to the standard format (except for
two that are updated in https://github.com/tinygo-org/tinygo/pull/1024).
No smoke tests changed (when comparing the output hash), except for some
wasm tests that include DWARF debug info and tend to be flaky anyway.
Diffstat (limited to 'src/runtime/runtime_fe310.go')
-rw-r--r-- | src/runtime/runtime_fe310.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime_fe310.go b/src/runtime/runtime_fe310.go index 2af409025..de0d7ec46 100644 --- a/src/runtime/runtime_fe310.go +++ b/src/runtime/runtime_fe310.go @@ -18,7 +18,7 @@ type timeUnit int64 func postinit() {} -//go:export main +//export main func main() { // Zero the PLIC enable bits on startup: they are not zeroed at reset. sifive.PLIC.ENABLE[0].Set(0) |