aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtins.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-10-07 21:29:45 +0200
committerAyke van Laethem <[email protected]>2018-10-07 21:29:45 +0200
commit1bbdab41d2e87a47aafd11471a74a6e02df67099 (patch)
tree13fd869baeeb921cb20646d1c903759ea79ac478 /builtins.go
parent73709922b29fdd35fba58a67a2d85111f9cb9225 (diff)
downloadtinygo-1bbdab41d2e87a47aafd11471a74a6e02df67099.tar.gz
tinygo-1bbdab41d2e87a47aafd11471a74a6e02df67099.zip
all: improve compiler-rt compilation
A few changes to make sure compiler-rt is correctly compiled (and doesn't include host headers, for example). This improves support for AVR, but it still doesn't work. Compiler-rt itself doesn't really work for AVR either.
Diffstat (limited to 'builtins.go')
-rw-r--r--builtins.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins.go b/builtins.go
index 8c1817edc..58589de72 100644
--- a/builtins.go
+++ b/builtins.go
@@ -161,7 +161,7 @@ func loadBuiltins(target string) (path string, err error) {
objpath := filepath.Join(dir, name+".o")
objs = append(objs, objpath)
srcpath := filepath.Join(builtinsDir, name+".c")
- cmd := exec.Command(commands["clang"], "-c", "-Oz", "-g", "-Werror", "-Wall", "-std=c11", "--target="+target, "-o", objpath, srcpath)
+ cmd := exec.Command(commands["clang"], "-c", "-Oz", "-g", "-Werror", "-Wall", "-std=c11", "-fshort-enums", "-nostdlibinc", "--target="+target, "-o", objpath, srcpath)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = dir