diff options
author | Ayke van Laethem <[email protected]> | 2019-04-20 15:14:48 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-04-25 12:55:52 +0200 |
commit | 2f2d62cc0ced7115901aa35885e3a56aab8efeb9 (patch) | |
tree | 86b76bed2e89b13d40a390aef8741cd4f5a6599c /targets | |
parent | d396abb6907b07b6a66129c1cf12d55a1ffce976 (diff) | |
download | tinygo-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.json | 3 | ||||
-rw-r--r-- | targets/wasm.json | 2 |
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": [ |