• 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
How come 'setenv' in Xcode build transcripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How come 'setenv' in Xcode build transcripts?


  • Subject: How come 'setenv' in Xcode build transcripts?
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 23 Jun 2013 19:40:40 -0700

For automated testing, I'm generating scripts to build files individually, with clang, like Xcode does.  The build transcripts generated by Xcode 4.6 typically contain blocks of code, one for each source file in the target, which start like this…

CompileC "/Users/jk/Library/Application Support/Xcode/IntermediateBuildFiles/DynamicMenuWipeout.build/Release/DynamicMenuWipeout.build/Objects-normal/x86_64/StatusItemMenu.o" StatusItemMenu.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jk/Documents/Programming/Projects/DynamicMenuWipeout
    setenv LANG en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang …

There are four lines there.

The first line, which begins with CompileC, I guess is some kind of internal command which tells Xcode to generate and run the last three lines to compile the source file.

The last three lines, indented, *look like* lines in a shell script which does the actual building.

The first one, 'cd' is obviously a bash 'change directory' command.
The second one sets an environment variable.
The last one, which I have truncated, is the actual clang invocation.

If I run these three commands in Terminal, it compiles the source file as expected, except it issues a warning that setenv is an unknown command.  Indeed, setenv is known in (t)csh but not bash.  Assuming there is no need to export this to other wheels, the equivalent bash command would be…
    LANG=en_US.US-ASCI

Does anyone know why Xcode would be using setenv?  Does Xcode possibly do its work in (t)csh shells instead of bash?

Jerry








 _______________________________________________
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: How come 'setenv' in Xcode build transcripts?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Xcode 4.6.3 crashes on launch
  • Next by Date: Re: Do I need to codesign my .app, or just the installer?
  • Previous by thread: Re: Xcode 4.6.3 crashes on launch
  • Next by thread: Re: How come 'setenv' in Xcode build transcripts?
  • Index(es):
    • Date
    • Thread