Bug 347187

Summary: xbuild issue with multiple /define symbols
Product: [Mono] Mono: Tools Reporter: Karl Waclawek <karl>
Component: xbuildAssignee: Mono Bugs <mono-bugs>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None    
Version: 1.2.6   
Target Milestone: 1.2.6   
Hardware: x86   
OS: Ubuntu   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Karl Waclawek 2007-12-09 18:49:06 UTC
On Unbuntu 7.10, xbuild generates a commandline for gmcs like that:
  gmcs ... /define:OPTION1;OPTION2;OPTION3;...

This seems to confuse the shell, as gmcs only recognizes the first option,
and I get errors like this for the other options:

bash: OPTION2: command not found
bash: OPTION3: command not found

Workaround: enclose in quotes, like this, *omitting the last semi-colon*:

  gmcs ... /define:"OPTION1;OPTION2;OPTION3"...

If you don't leave out the last semi-colon, you get another error:

  warning CS2029: Invalid conditional define symbol `'
Comment 1 Jain Ankit 2008-07-30 19:56:21 UTC
Fixed in svn.