Skip to content

Commit 79e3e25

Browse files
committed
Added re2c check to install script
1 parent c54f3bc commit 79e3e25

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Changed
99
- Improved install scripts
1010
- Refactored tests
11+
- Added re2c check to install script
1112

1213
### Fixed
1314
- Fixed `mod-assign` operator recognition

install

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ if [ x"$GCC_BIN" = x ]; then
3737
exit 1
3838
fi
3939

40+
re2c_vernum=`re2c --vernum 2>/dev/null`
41+
if test -z "$re2c_vernum"; then
42+
echo "error: unable to locate the re2c"
43+
exit 1
44+
fi
45+
46+
if test "$re2c_vernum" -lt "1306"; then
47+
echo "error: minimal required version of re2c is 0.13.6"
48+
exit 1
49+
fi
50+
4051
# Check best compilation flags for compiler
4152
export CC=gcc
4253
export CFLAGS="-march=native -mtune=native -O2 -fomit-frame-pointer"

0 commit comments

Comments
 (0)