From 4563acdd236da80f2cadc2ba548d05c10f5b2998 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 31 Aug 2010 16:51:29 +0000 Subject: [PATCH] THRIFT-865. Make Thrift buildable without libfl yywrap is only needed if we need one lexer context to traverse multiple input files. This feature isn't used by Thrift, so we disable it with "option noyywrap". With yywrap disabled, there is no need to link to libfl if flex is the lex implementation used. With this patch, release tarballs can be built without lex. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991254 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/thriftl.ll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll index a7975afc..84e02bb5 100644 --- a/compiler/cpp/src/thriftl.ll +++ b/compiler/cpp/src/thriftl.ll @@ -55,6 +55,11 @@ void integer_overflow(char* text) { */ %option lex-compat +/** + * Our inputs are all single files, so no need for yywrap + */ +%option noyywrap + /** * Helper definitions, comments, constants, and whatnot */ -- 2.17.1