diff --git a/Formula/r/recc.rb b/Formula/r/recc.rb index 8ddf6d512b00b..1c7df4b5fdcd1 100644 --- a/Formula/r/recc.rb +++ b/Formula/r/recc.rb @@ -87,7 +87,7 @@ def generate_recc_server(bin_directory) #{bin}/buildbox-casd \ --local-server-instance=recc-server \ --protect-session-blobs \ - #{var}/recc/casd + ${1:-#{var}/recc/casd} EOS end @@ -174,10 +174,13 @@ def caveats test do system bin/"recc", "--version" - system bin/"recc-server &" + recc_cache_data_path="recc_cache_data_path" + recc_cache_data_path.mkpath + system bin/"recc-server #{recc_cache_data_path} &" "test.c".write <<~EOS int main() {} EOS + ENV["RECC_SERVER"]=recc_cache_data_path/"casd.sock" ENV["RECC_LOG_LEVEL"]="info" system bin/"recc-cc", "-c", "test.c" output = shell_output(bin/"recc-cc -c test.c 2>&1")