Skip to content

Commit d87b0c0

Browse files
committed
Load environment in a separate file, support parallel builds.
1 parent f0f1e44 commit d87b0c0

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGES.txt

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Features
4141

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

44+
* Added separate env loading file and support for NUM_JOBS env var to Windows
45+
build (#971).
46+
4447
0.7.3 (2014-MM-DD)
4548
==================
4649

build.bat

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
@echo off
2-
set BUILD_DIR=%CD%\build
3-
set CTEST_OUTPUT_ON_FAILURE=1
2+
call env.bat
43

5-
setlocal ENABLEDELAYEDEXPANSION
6-
set NEWGOPATH=%BUILD_DIR%\heka
7-
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!)
8-
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin;
4+
if "%NUM_JOBS%"=="" (set NUM_JOBS=1)
95

106
if NOT exist %BUILD_DIR% mkdir %BUILD_DIR%
117
cd %BUILD_DIR%
128
cmake -DINCLUDE_MOZSVC=false -DCMAKE_BUILD_TYPE=release -G"MinGW Makefiles" ..
13-
mingw32-make
9+
mingw32-make -j %NUM_JOBS%

env.bat

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
set BUILD_DIR=%CD%\build
3+
set CTEST_OUTPUT_ON_FAILURE=1
4+
5+
setlocal ENABLEDELAYEDEXPANSION
6+
set NEWGOPATH=%BUILD_DIR%\heka
7+
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!)
8+
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin;

0 commit comments

Comments
 (0)