[GRADLE-2943] Incorrect quoting of linker arguments with spaces, single and double quotes Created: 01/Nov/13 Updated: 24/Feb/14 Resolved: 24/Feb/14 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | None |
| Fix Version/s: | 1.12-rc-1 |
| Type: | Bug | ||
| Reporter: | Gradle Forums | Assignee: | Daz DeBoer |
| Resolution: | Fixed | Votes: | 0 |
| Description |
|
I'm trying to set a linker flag for VisualCpp which gradle escaped with quotes: apply plugin: 'cpp-lib' The funny arg is: This end up in the compiler-options.txt as: |
| Comments |
| Comment by Gradle Forums [ 01/Nov/13 ] |
|
What exactly do you want to be passed on the command line to link.exe? |
| Comment by Gradle Forums [ 01/Nov/13 ] |
|
I think the correct value would be: /MANIFESTUAC:"level='asInvoker' uiAccess='false'" The problem is that gradle adds quotes around it which confuses the linker. |
| Comment by Gradle Forums [ 01/Nov/13 ] |
|
I'm going over what Visual Studio says it is passing on the command line to the linker. Thought I would try and keep the difference between what gradle passes to the linker and what Visual Studio pass to a minimum. |
| Comment by Daz DeBoer [ 24/Feb/14 ] |
|
This should now be fixed for most cases: the reported arg should be supplied as: |