mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-29 18:52:29 +00:00 
			
		
		
		
	Fix build hashcode
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
		
							parent
							
								
									5790115e40
								
							
						
					
					
						commit
						60ce2a84cd
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		|  | @ -1298,7 +1298,7 @@ def mk_config(): | ||||||
|             'SLINK_OUT_FLAG=/Fe\n') |             'SLINK_OUT_FLAG=/Fe\n') | ||||||
|         extra_opt = '' |         extra_opt = '' | ||||||
|         if GIT_HASH: |         if GIT_HASH: | ||||||
|             extra_opt = '%s /D Z3GITHASH="%s"' % (extra_opt, GIT_HASH) |             extra_opt = '%s /D Z3GITHASH=%s' % (extra_opt, GIT_HASH) | ||||||
|         if DEBUG_MODE: |         if DEBUG_MODE: | ||||||
|             config.write( |             config.write( | ||||||
|                 'LINK_FLAGS=/nologo /MDd\n' |                 'LINK_FLAGS=/nologo /MDd\n' | ||||||
|  | @ -1361,7 +1361,7 @@ def mk_config(): | ||||||
|         else: |         else: | ||||||
|             CPPFLAGS = '%s -D_MP_INTERNAL' % CPPFLAGS |             CPPFLAGS = '%s -D_MP_INTERNAL' % CPPFLAGS | ||||||
|         if GIT_HASH: |         if GIT_HASH: | ||||||
|             CPPFLAGS = '%s -DZ3GITHASH="%s"' % (CPPFLAGS, GIT_HASH) |             CPPFLAGS = '%s -DZ3GITHASH=%s' % (CPPFLAGS, GIT_HASH) | ||||||
|         CXXFLAGS = '%s -c' % CXXFLAGS |         CXXFLAGS = '%s -c' % CXXFLAGS | ||||||
|         HAS_OMP = test_openmp(CXX) |         HAS_OMP = test_openmp(CXX) | ||||||
|         if HAS_OMP: |         if HAS_OMP: | ||||||
|  |  | ||||||
|  | @ -50,6 +50,9 @@ void error(const char * msg) { | ||||||
|     exit(ERR_CMD_LINE); |     exit(ERR_CMD_LINE); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | #define STRINGIZE(x) #x | ||||||
|  | #define STRINGIZE_VALUE_OF(x) STRINGIZE(x) | ||||||
|  | 
 | ||||||
| void display_usage() { | void display_usage() { | ||||||
|     std::cout << "Z3 [version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER; |     std::cout << "Z3 [version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER; | ||||||
|     std::cout << " - "; |     std::cout << " - "; | ||||||
|  | @ -60,7 +63,7 @@ void display_usage() { | ||||||
| #endif | #endif | ||||||
|     std::cout << " bit"; |     std::cout << " bit"; | ||||||
| #ifdef Z3GITHASH | #ifdef Z3GITHASH | ||||||
|     std::cout << " - build hashcode " << Z3GITHASH; |     std::cout << " - build hashcode " << STRINGIZE_VALUE_OF(Z3GITHASH); | ||||||
| #endif | #endif | ||||||
|     std::cout << "]. (C) Copyright 2006-2013 Microsoft Corp.\n"; |     std::cout << "]. (C) Copyright 2006-2013 Microsoft Corp.\n"; | ||||||
|     std::cout << "Usage: z3 [options] [-file:]file\n"; |     std::cout << "Usage: z3 [options] [-file:]file\n"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue