mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	lib: Add host platform to version string
This is import on systems where we compile 32bit tests that run on 64bit platforms. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									8c33e9ad11
								
							
						
					
					
						commit
						831a47196d
					
				@ -33,6 +33,7 @@ AC_CONFIG_AUX_DIR([build-aux])
 | 
			
		||||
AC_USE_SYSTEM_EXTENSIONS
 | 
			
		||||
AC_SYS_LARGEFILE
 | 
			
		||||
AC_GNU_SOURCE
 | 
			
		||||
AC_CANONICAL_HOST
 | 
			
		||||
 | 
			
		||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
 | 
			
		||||
AM_PATH_PYTHON([3],, [:])
 | 
			
		||||
@ -185,6 +186,7 @@ if test "x$BUILD_TESTS" = xyes; then
 | 
			
		||||
	AC_DEFINE(BUILD_TESTS, 1, [Build tests])
 | 
			
		||||
fi
 | 
			
		||||
AM_CONDITIONAL(BUILD_TESTS, [test "x$BUILD_TESTS" = xyes])
 | 
			
		||||
AC_DEFINE_UNQUOTED(TARGET_CPU_PLATFORM, ["$host_cpu"], [Target platform])
 | 
			
		||||
 | 
			
		||||
AC_CONFIG_FILES([
 | 
			
		||||
		 Makefile
 | 
			
		||||
 | 
			
		||||
@ -806,7 +806,8 @@ static void print_version(void)
 | 
			
		||||
	if (list_subtests)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	fprintf(stdout, "IGT-Version: %s-%s\n", PACKAGE_VERSION, IGT_GIT_SHA1);
 | 
			
		||||
	fprintf(stdout, "IGT-Version: %s-%s (%s)\n", PACKAGE_VERSION,
 | 
			
		||||
		IGT_GIT_SHA1, TARGET_CPU_PLATFORM);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void print_usage(const char *command_str, const char *help_str,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user