Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c826e0a

Browse files
[[ WindowsGyp ]] Defaults the settings of BUILD_EDITION to community if not defined when calling configure.bat
An error was thrown l.76, when checking whether %BUILD_EDITION% is commercial
1 parent 9fe7c64 commit c826e0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ SET warnings=0
99
REM Not all versions of windows the the %programfiles(x86)% variable
1010
IF NOT DEFINED programfiles(x86) SET programfiles(x86)=%programfiles%
1111

12+
REM When calling configure.bat from the command line, BUILD_EDITION is not defined
13+
IF NOT DEFINED BUILD_EDITION SET BUILD_EDITION="community"
14+
1215
REM Note: to test whether a directory exists in batch script, you need to check
1316
REM whether a file within that directory exists. Easiest way to do this is to
1417
REM add the "*" wildcard after the directory

0 commit comments

Comments
 (0)