aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/esp8266.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-02-10 23:38:48 +0100
committerRon Evans <[email protected]>2021-02-11 10:50:29 +0100
commit676a78776afcf42ca7c694a8b36ee9b7129fc204 (patch)
tree88941ed89d70b76aae13dea5129ad38628551d6b /targets/esp8266.json
parent8a54615a099426b3cabf30963ebf4472c17465a8 (diff)
downloadtinygo-676a78776afcf42ca7c694a8b36ee9b7129fc204.tar.gz
tinygo-676a78776afcf42ca7c694a8b36ee9b7129fc204.zip
esp8266: add compiler-rt library
With this change, it is possible to compile ./testdata/float.go for the ESP8266 and run it successfully. Previously it would result in many linker error like this: /tmp/tinygo494494333/main.o:(.literal.runtime.printfloat64+0x0): undefined reference to `__unorddf2' /tmp/tinygo494494333/main.o:(.literal.runtime.printfloat64+0x4): undefined reference to `__gtdf2' /tmp/tinygo494494333/main.o:(.literal.runtime.printfloat64+0xc): undefined reference to `__nedf2' /tmp/tinygo494494333/main.o:(.literal.runtime.printfloat64+0x10): undefined reference to `__ltdf2' /tmp/tinygo494494333/main.o:(.literal.runtime.printfloat64+0x1c): undefined reference to `__gedf2' I have verified that the output on the serial console matches ./testdata/float.txt when run on the ESP8266.
Diffstat (limited to 'targets/esp8266.json')
-rw-r--r--targets/esp8266.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/targets/esp8266.json b/targets/esp8266.json
index c0c7ad3fc..593d0769e 100644
--- a/targets/esp8266.json
+++ b/targets/esp8266.json
@@ -8,6 +8,7 @@
"cflags": [
"-mcpu=esp8266"
],
+ "rtlib": "compiler-rt",
"linkerscript": "targets/esp8266.ld",
"extra-files": [
"src/device/esp/esp8266.S",