summaryrefslogtreecommitdiff
path: root/src/rebar_port_compiler.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-06-18 11:26:29 -0400
committerFred Hebert <mononcqc@ferd.ca>2014-06-18 11:26:29 -0400
commite1237caee5526b525e3345d0a61a800065bd0197 (patch)
tree3bcfadcc339633aa79aa4be396f0811d205f6b2c /src/rebar_port_compiler.erl
parent8a0d8ad7a56d0708956567bdf1581b04b46f7f94 (diff)
parent4b49dc0727c59ebb4f07d048283021ab2f0fc1e0 (diff)
Merge pull request #260 from dgud/dgud/windows-fix-paths
Quote include/lib paths
Diffstat (limited to 'src/rebar_port_compiler.erl')
-rw-r--r--src/rebar_port_compiler.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index fec8e04..35adc3c 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -565,10 +565,10 @@ default_env() ->
{"EXE_CFLAGS" , "-g -Wall -fPIC $ERL_CFLAGS"},
{"EXE_LDFLAGS", "$ERL_LDFLAGS"},
- {"ERL_CFLAGS", lists:concat([" -I", erl_interface_dir(include),
- " -I", filename:join(erts_dir(), "include"),
- " "])},
- {"ERL_EI_LIBDIR", erl_interface_dir(lib)},
+ {"ERL_CFLAGS", lists:concat([" -I\"", erl_interface_dir(include),
+ "\" -I\"", filename:join(erts_dir(), "include"),
+ "\" "])},
+ {"ERL_EI_LIBDIR", lists:concat(["\"", erl_interface_dir(lib), "\""])},
{"ERL_LDFLAGS" , " -L$ERL_EI_LIBDIR -lerl_interface -lei"},
{"ERLANG_ARCH" , rebar_utils:wordsize()},
{"ERLANG_TARGET", rebar_utils:get_arch()},