aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-04-20 15:14:48 +0200
committerRon Evans <[email protected]>2019-04-25 12:55:52 +0200
commit2f2d62cc0ced7115901aa35885e3a56aab8efeb9 (patch)
tree86b76bed2e89b13d40a390aef8741cd4f5a6599c /targets
parentd396abb6907b07b6a66129c1cf12d55a1ffce976 (diff)
downloadtinygo-2f2d62cc0ced7115901aa35885e3a56aab8efeb9.tar.gz
tinygo-2f2d62cc0ced7115901aa35885e3a56aab8efeb9.zip
cgo: support builtin #include headers
Add support for header files bundled with the compiler by copying them into the release tarball.
Diffstat (limited to 'targets')
-rw-r--r--targets/cortex-m.json3
-rw-r--r--targets/wasm.json2
2 files changed, 5 insertions, 0 deletions
diff --git a/targets/cortex-m.json b/targets/cortex-m.json
index 0e11034a2..eaba15953 100644
--- a/targets/cortex-m.json
+++ b/targets/cortex-m.json
@@ -9,7 +9,10 @@
"cflags": [
"-Oz",
"-mthumb",
+ "-Werror",
"-fshort-enums",
+ "-nostdlibinc",
+ "-Wno-macro-redefined",
"-fno-exceptions", "-fno-unwind-tables",
"-ffunction-sections", "-fdata-sections"
],
diff --git a/targets/wasm.json b/targets/wasm.json
index 06988a53b..8b5ed8553 100644
--- a/targets/wasm.json
+++ b/targets/wasm.json
@@ -7,6 +7,8 @@
"linker": "wasm-ld",
"cflags": [
"--target=wasm32",
+ "-nostdlibinc",
+ "-Wno-macro-redefined",
"-Oz"
],
"ldflags": [