The Samba-Bugzilla – Attachment 5675 Details for
Bug 7401
Preprocessor error on universal build
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch as attachment
ccache-2.4_macos_arch.patch (text/plain), 979 bytes, created by
Florian Doersch
on 2010-04-30 08:57:34 UTC
(
hide
)
Description:
the patch as attachment
Filename:
MIME Type:
Creator:
Florian Doersch
Created:
2010-04-30 08:57:34 UTC
Size:
979 bytes
patch
obsolete
>--- ccache.c.orig 2004-09-13 12:38:30.000000000 +0200 >+++ ccache.c.unpatched 2010-04-30 15:45:43.000000000 +0200 >@@ -363,11 +363,27 @@ > x_asprintf(&path_stderr, "%s/tmp.cpp_stderr.%s", temp_dir, tmp_string()); > > if (!direct_i_file) { >+ int i = 0; >+ ARGS *nargs = args_init(args->argc, args->argv); >+ > /* run cpp on the input file to obtain the .i */ >- args_add(args, "-E"); >- args_add(args, input_file); >- status = execute(args->argv, path_stdout, path_stderr); >- args_pop(args, 2); >+ args_add(nargs, "-E"); >+ args_add(nargs, input_file); >+ >+ /* remove -arch parameters */ >+ for(i = 0; i < nargs->argc;) >+ { >+ if(strcmp(nargs->argv[i], "-arch") == 0) >+ { >+ strcpy(nargs->argv[i++],""); >+ strcpy(nargs->argv[i],""); >+ } >+ else >+ ++i; >+ } >+ >+ status = execute(nargs->argv, path_stdout, path_stderr); >+ /*args_pop(args, 2);*/ > } else { > /* we are compiling a .i or .ii file - that means we > can skip the cpp stage and directly form the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7401
: 5675