From: David Reiss Date: Tue, 31 Aug 2010 16:51:29 +0000 (+0000) Subject: THRIFT-865. Make Thrift buildable without libfl X-Git-Tag: 0.5.0~87 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4563acdd236da80f2cadc2ba548d05c10f5b2998;p=common%2Fthrift.git 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 --- 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 */