You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 18:51:29 UTC

svn commit: r991254 - /incubator/thrift/trunk/compiler/cpp/src/thriftl.ll

Author: dreiss
Date: Tue Aug 31 16:51:29 2010
New Revision: 991254

URL: http://svn.apache.org/viewvc?rev=991254&view=rev
Log:
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.

Modified:
    incubator/thrift/trunk/compiler/cpp/src/thriftl.ll

Modified: incubator/thrift/trunk/compiler/cpp/src/thriftl.ll
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/thriftl.ll?rev=991254&r1=991253&r2=991254&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/thriftl.ll (original)
+++ incubator/thrift/trunk/compiler/cpp/src/thriftl.ll Tue Aug 31 16:51:29 2010
@@ -56,6 +56,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
  */