Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 121336 | Differences between
and this patch

Collapse All | Expand All

(-)ccache.c.orig (+16 lines)
Lines 261-266 Link Here
261
	int nlevels = 2;
261
	int nlevels = 2;
262
	char *input_base;
262
	char *input_base;
263
	char *tmp;
263
	char *tmp;
264
	char *version[3];
264
	
265
	
265
	if ((s = getenv("CCACHE_NLEVELS"))) {
266
	if ((s = getenv("CCACHE_NLEVELS"))) {
266
		nlevels = atoi(s);
267
		nlevels = atoi(s);
Lines 334-339 Link Here
334
	hash_int(st.st_size);
335
	hash_int(st.st_size);
335
	hash_int(st.st_mtime);
336
	hash_int(st.st_mtime);
336
337
338
	/* Include output of 'gcc -v' into hash, to differentiate
339
	   Gentoo SPECS switching trickery */
340
	x_asprintf(&path_stdout, "%s/tmp.v.out.%s", temp_dir, tmp_string());
341
	x_asprintf(&path_stderr, "%s/tmp.v.err.%s", temp_dir, tmp_string());
342
	version[0]=args->argv[0];
343
	version[1]="-v";
344
	version[2]=NULL;
345
	status = execute(version,path_stdout,path_stderr);
346
	if (status == 0) {
347
		hash_file(path_stdout);
348
		hash_file(path_stderr);
349
	}
350
	unlink(path_stdout);
351
	unlink(path_stderr);
352
337
	/* possibly hash the current working directory */
353
	/* possibly hash the current working directory */
338
	if (getenv("CCACHE_HASHDIR")) {
354
	if (getenv("CCACHE_HASHDIR")) {
339
		char *cwd = gnu_getcwd();
355
		char *cwd = gnu_getcwd();

Return to bug 121336