aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e5145b8ad..ea96730aa 100644
--- a/Makefile
+++ b/Makefile
@@ -86,13 +86,16 @@ test:
release: build/tinygo gen-device
@mkdir -p build/release/tinygo/bin
+ @mkdir -p build/release/tinygo/lib/clang/include
@mkdir -p build/release/tinygo/lib/CMSIS/CMSIS
@mkdir -p build/release/tinygo/lib/compiler-rt/lib
@mkdir -p build/release/tinygo/lib/nrfx
@mkdir -p build/release/tinygo/pkg/armv6m-none-eabi
@mkdir -p build/release/tinygo/pkg/armv7m-none-eabi
@mkdir -p build/release/tinygo/pkg/armv7em-none-eabi
+ @echo copying source files
@cp -p build/tinygo build/release/tinygo/bin
+ @cp -p $(abspath $(CLANG_SRC))/lib/Headers/*.h build/release/tinygo/lib/clang/include
@cp -rp lib/CMSIS/CMSIS/Include build/release/tinygo/lib/CMSIS/CMSIS
@cp -rp lib/CMSIS/README.md build/release/tinygo/lib/CMSIS
@cp -rp lib/compiler-rt/lib/builtins build/release/tinygo/lib/compiler-rt/lib