From b0a6007faafb6737084bd4c0a385d362fd2403e5 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Thu, 20 May 2021 18:06:35 +0800 Subject: [PATCH] =?UTF-8?q?fx:=20=E6=A8=A1=E5=9D=97=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D-=E6=9C=AA=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebin/eNpc.app | 21 ++++++++++++--------- src/npRMain.erl | 6 +++--- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ebin/eNpc.app b/ebin/eNpc.app index 53d695d..661e728 100644 --- a/ebin/eNpc.app +++ b/ebin/eNpc.app @@ -1,9 +1,12 @@ -{application,eNpc, - [{description,"eNpc: Erlang Native Compiler"}, - {vsn,"0.1.0"}, - {registered,[]}, - {applications,[kernel,stdlib]}, - {modules,[eNpc,rebar,rebarConfig,rebarNpCompiler,rebarUtils]}, - {licenses,["Apache 2.0"]}, - {links,[]}, - {env,[{log_level,warn}]}]}. +{application, eNpc, + [ + {description, "eNpc: Erlang Native Compiler"}, + {vsn, "0.1.0"}, + {registered, []}, + {applications, [kernel, stdlib]}, + {modules, [eNpc, npRMain, npRConfig, npRCompiler, npRUtils]}, + {licenses, ["Apache 2.0"]}, + {links, []}, + {env, [{log_level, warn}]} + ] +}. diff --git a/src/npRMain.erl b/src/npRMain.erl index 19afc4b..d319ef4 100644 --- a/src/npRMain.erl +++ b/src/npRMain.erl @@ -162,15 +162,15 @@ runAux(BaseConfig, Commands) -> %% Make sure we're an app directory AppFile = "", - %% case rebarUtils:isAppDir() of + %% case npRUtils:isAppDir() of %% {true, AppFile0} -> %% AppFile0; %% false -> - %% rebarUtils:delayedHalt(1) + %% npRUtils:delayedHalt(1) %% end, % Setup our environment - BaseConfig2 = setupEnvs(BaseConfig1, [rebarNpCompiler]), + BaseConfig2 = setupEnvs(BaseConfig1, [npRCompiler]), %% Process each command, resetting any state between each one lists:foreach( fun(Command) ->