• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
lex: how to override Xcode's output file choice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lex: how to override Xcode's output file choice?


  • Subject: lex: how to override Xcode's output file choice?
  • From: Dan Caugherty <email@hidden>
  • Date: Tue, 22 Sep 2009 21:35:16 -0400

Hey all --

I'd like (f)lex to produce C++ (yes, the evil FlexLexer option.. I
know, it's frightful, but I have my reasons). But Xcode insists on
invoking lex with
-o$(DERIVED_SOURCES)/lex.yy.c
as the final flag in the command line.

All of my attempts to override this setting via lex build flag
settings in the project have failed. Rather than hack together a
script to move this file to lex.myfunkylexer.cpp, how can I tell Xcode
to stop adding its own -o option?
(I hate it when tools try too hard to be helpful.)

I'm sure there's an easier way to do this, but finding it has been an
adventure. Would anyone here know?

Thanks,
-- Dan Caugherty
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: lex: how to override Xcode's output file choice?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: gcc 4.2 generates error that was OK before
  • Next by Date: lex: Found my answer, never mind
  • Previous by thread: Re: gcc 4.2 generates error that was OK before
  • Next by thread: Re: lex: how to override Xcode's output file choice?
  • Index(es):
    • Date
    • Thread