diff options
author | Loïc Hoguin <[email protected]> | 2016-01-24 09:16:32 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-01-24 09:16:32 +0100 |
commit | 8290a433489493c5929ca62dbef76d6e6564612b (patch) | |
tree | 379ce1c491e9c3919932d73d6077f4b430eb8f9f /plugins/c_src.mk | |
parent | e13e544c5022ef26cd956f1b99c42e1f5989b8e1 (diff) | |
download | erlang.mk-8290a433489493c5929ca62dbef76d6e6564612b.tar.gz erlang.mk-8290a433489493c5929ca62dbef76d6e6564612b.tar.bz2 erlang.mk-8290a433489493c5929ca62dbef76d6e6564612b.zip |
Export CC on Windows
Considering we require this compiler, we should set a good
default for all sub-Makefiles.
Diffstat (limited to 'plugins/c_src.mk')
-rw-r--r-- | plugins/c_src.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk index 87fd32f..518ba9e 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -30,6 +30,7 @@ ifeq ($(PLATFORM),msys2) # We hardcode the compiler used on MSYS2. The default CC=cc does # not produce working code. The "gcc" MSYS2 package also doesn't. CC = /mingw64/bin/gcc + export CC CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes CXXFLAGS ?= -O3 -finline-functions -Wall else ifeq ($(PLATFORM),darwin) |