Bug 583218 - In Eclipse C/C++ CDT build variables do not expand
Summary: In Eclipse C/C++ CDT build variables do not expand
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 12:03 EDT by Greg Jordan CLA
Modified: 2024-04-30 12:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Jordan CLA 2024-04-30 12:03:45 EDT
In (project) properties I define a user build variable (using the given dialogue)  under "C/C++ Build". Let's call it XYZ. Give it a string value of C:\Temp\. Under "Settings" I place this variable as $(XYZ) into the expert settings command line pattern as follows:

${COMMAND} ${cross_toolchain_flags} ${FLAGS} -c ${OUTPUT_FLAG} $(XYZ)${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}

I then compile a .c or .cpp file. The $(XYZ) fails to expand, and is therefore in the executed command in unexpanded form. The command of course does not work correctly, and is unable to generate the expected file.