Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Load environment in a separate file, support parallel builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafrombrc committed Oct 20, 2014
1 parent f0f1e44 commit d87b0c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Features

* Added option to disable re-using TCP connections to the ElasticSearch output

* Added separate env loading file and support for NUM_JOBS env var to Windows
build (#971).

0.7.3 (2014-MM-DD)
==================

Expand Down
10 changes: 3 additions & 7 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
@echo off
set BUILD_DIR=%CD%\build
set CTEST_OUTPUT_ON_FAILURE=1
call env.bat

setlocal ENABLEDELAYEDEXPANSION
set NEWGOPATH=%BUILD_DIR%\heka
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!)
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin;
if "%NUM_JOBS%"=="" (set NUM_JOBS=1)

if NOT exist %BUILD_DIR% mkdir %BUILD_DIR%
cd %BUILD_DIR%
cmake -DINCLUDE_MOZSVC=false -DCMAKE_BUILD_TYPE=release -G"MinGW Makefiles" ..
mingw32-make
mingw32-make -j %NUM_JOBS%
8 changes: 8 additions & 0 deletions env.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
set BUILD_DIR=%CD%\build
set CTEST_OUTPUT_ON_FAILURE=1

setlocal ENABLEDELAYEDEXPANSION
set NEWGOPATH=%BUILD_DIR%\heka
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!)
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin;

0 comments on commit d87b0c0

Please sign in to comment.