depot/third_party/nixpkgs/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
643 B
Diff

diff --git a/source/OMakefile b/source/OMakefile
index e6bd37e..1bbc0a8 100644
--- a/source/OMakefile
+++ b/source/OMakefile
@@ -184,6 +184,12 @@ DEP_MAIN = $(FNT)/dependfront
PAR_MAIN = $(FNT)/parsefront
############################################################
+# Nixpkgs specific changes
+#
+
+LEX = flex
+
+############################################################
# Platform specific changes
#
@@ -194,7 +200,6 @@ if $(mem $(SYSNAME), Linux)
if $(mem $(OSTYPE), Cygwin Win32)
YACC = bison -by
- LEX = flex
CC = i686-pc-mingw32-gcc
INC_C[] += $(INC)/byteswap $(INC)/search
export