Menu
Logged-In As
ACCOUNTNot Logged In
Append CMake build flags to the end of a compile lineBRL-CAD
Status: ClosedTime to complete:
48 hrs
Mentors: Sean
This is a follow-on task to http://www.google-melange.com/gci/task/view/google/gci2012/7984228
Instead of having environment variables get appended to the beginning or middle of a flags list, make them get added to the end. It's often a case when compiling that you need to override a flag or path getting set, so we need the ability to both prepend and affix flags to the end of a compilation/linker line.
Provide a patch and output log showing it works.
Uploaded Work
File name/URL | File size | Date submitted | |
---|---|---|---|
compilerflags_cmake_fix.patch | 2.2 KB | December 20 2012 03:10 UTC | |
brlcad_cmake_result.log | 2.8 KB | December 20 2012 03:10 UTC | |
compilerflags_cmake_fix.patch | 1.4 KB | December 21 2012 05:50 UTC | |
brlcad_cmake_result.log | 7.1 KB | December 21 2012 05:52 UTC |
I would like to work on this task.
This task has been assigned to gcking. You have 48 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
Can you please review my work?
So at a glance, your output doesn't show it working... There are flags both before and after the two cflags you set. I'd expect -DCOWGOES... to be the first flag before -Werror and -DTEST=1 to be the last flag after -msse3...
Also related to you prior task, I've found bugs if you re-run cmake or run cmake with a build mode (Debug/Release) set, so you might want to check that as well. We can make a separate task to fix them, but there's definitely more work that the first patch implied.
One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.
Let us know if you need more time. This one may be a little tricky as you'll probably have to edit other files and/or put commands into a macro.
The work on this task is ready to be reviewed.
I tested the script under both debug and release mode, but I did not find out the error you mentioned below. I attached the result log file including both debug and release mode, please review it.
Can you please review my work?
Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.
Did you test with and without a previous cmake cache'd result?
I'm seeing variables getting joined together here, but it could be my older version.
Congratulations, this task has been completed successfully.