mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
bug 294135: JUnit failures related to files with spaces in managedbuilder test suite
Fixed regression bug and updated benchmarks.
This commit is contained in:
parent
7400462cd0
commit
f2b3b42052
4 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ C_DEPS += \
|
||||||
Sources/sub\ sources/func\ 3.o: ../Sources/sub\ sources/func\ 3.c
|
Sources/sub\ sources/func\ 3.o: ../Sources/sub\ sources/func\ 3.c
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: GCC C Compiler'
|
@echo 'Invoking: GCC C Compiler'
|
||||||
gcc -I../Headers -I../Sources/sub\ sources -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"Sources/sub\ sources/func\ 3.d" -o"$@" "$<"
|
gcc -I../Headers -I../Sources/sub\ sources -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Sources/sub sources/func 3.d" -MT"Sources/sub\ sources/func\ 3.d" -o"$@" "$<"
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ C_DEPS += \
|
||||||
sub\ folder\ with\ spaces/foo\ with\ spaces.o: ../sub\ folder\ with\ spaces/foo\ with\ spaces.c
|
sub\ folder\ with\ spaces/foo\ with\ spaces.o: ../sub\ folder\ with\ spaces/foo\ with\ spaces.c
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: GCC C Compiler'
|
@echo 'Invoking: GCC C Compiler'
|
||||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"sub\ folder\ with\ spaces/foo\ with\ spaces.d" -o"$@" "$<"
|
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"sub folder with spaces/foo with spaces.d" -MT"sub\ folder\ with\ spaces/foo\ with\ spaces.d" -o"$@" "$<"
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ C_DEPS += \
|
||||||
main\ with\ spaces.o: ../main\ with\ spaces.c
|
main\ with\ spaces.o: ../main\ with\ spaces.c
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: GCC C Compiler'
|
@echo 'Invoking: GCC C Compiler'
|
||||||
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"main\ with\ spaces.d" -o"$@" "$<"
|
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main with spaces.d" -MT"main\ with\ spaces.d" -o"$@" "$<"
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ public class DefaultGCCDependencyCalculator2Commands implements
|
||||||
if( buildContext instanceof IResourceConfiguration || needExplicitRuleForFile ) {
|
if( buildContext instanceof IResourceConfiguration || needExplicitRuleForFile ) {
|
||||||
IPath outPath = getDependencyFiles()[0];
|
IPath outPath = getDependencyFiles()[0];
|
||||||
// -MT"dependency-file-name"
|
// -MT"dependency-file-name"
|
||||||
String optTxt = "-MT\"" + outPath.toString() + "\""; //$NON-NLS-1$ //$NON-NLS-2$
|
String optTxt = "-MT\"" + GnuMakefileGenerator.escapeWhitespaces(outPath.toString()) + "\""; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
options[3] = optTxt;
|
options[3] = optTxt;
|
||||||
} else {
|
} else {
|
||||||
// -MT"$(@:%.o=%.d) %.o"
|
// -MT"$(@:%.o=%.d) %.o"
|
||||||
|
|
Loading…
Add table
Reference in a new issue