Working to resolve environment include issues...
This commit is contained in:
parent
26a2a0fe5d
commit
0f9bf4e65a
@ -999,6 +999,7 @@ run_project(ProjectDir, ExecDir, RunArgs) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
run_project(ProjectDir, ExecDir, RunArgs, Meta) ->
|
run_project(ProjectDir, ExecDir, RunArgs, Meta) ->
|
||||||
|
true = os:putenv("zx_include", filename:join(os:getenv("ZX_DIR"), "include")),
|
||||||
case pre_prep(Meta, RunArgs) of
|
case pre_prep(Meta, RunArgs) of
|
||||||
{Type, Deps, NewArgs} ->
|
{Type, Deps, NewArgs} ->
|
||||||
{ok, Dir} = file:get_cwd(),
|
{ok, Dir} = file:get_cwd(),
|
||||||
@ -1083,7 +1084,6 @@ pre_prep4(Deps, {Realm, Name, _}, Dir, Rest) ->
|
|||||||
%% Execution prep common to all packages.
|
%% Execution prep common to all packages.
|
||||||
|
|
||||||
prepare(Deps) ->
|
prepare(Deps) ->
|
||||||
true = os:putenv("zx_include", filename:join(os:getenv("ZX_DIR"), "include")),
|
|
||||||
ok = lists:foreach(fun include_env/1, Deps),
|
ok = lists:foreach(fun include_env/1, Deps),
|
||||||
NotInstalled = fun(P) -> not filelib:is_dir(zx_lib:ppath(lib, P)) end,
|
NotInstalled = fun(P) -> not filelib:is_dir(zx_lib:ppath(lib, P)) end,
|
||||||
Needed = lists:filter(NotInstalled, Deps),
|
Needed = lists:filter(NotInstalled, Deps),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user