mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Compilation fix for FreeBSD
This commit is contained in:
		
							parent
							
								
									2b492f04f6
								
							
						
					
					
						commit
						b6c0b8c9ff
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,7 @@ CPP_COMPONENT='cpp'
 | 
			
		|||
IS_WINDOWS=False
 | 
			
		||||
IS_LINUX=False
 | 
			
		||||
IS_OSX=False
 | 
			
		||||
IS_FREEBSD=False
 | 
			
		||||
VERBOSE=True
 | 
			
		||||
DEBUG_MODE=False
 | 
			
		||||
SHOW_CPPS = True
 | 
			
		||||
| 
						 | 
				
			
			@ -98,6 +99,9 @@ def is_windows():
 | 
			
		|||
def is_linux():
 | 
			
		||||
    return IS_LINUX
 | 
			
		||||
 | 
			
		||||
def is_freebsd():
 | 
			
		||||
    return IS_FREEBSD
 | 
			
		||||
 | 
			
		||||
def is_osx():
 | 
			
		||||
    return IS_OSX
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -426,6 +430,8 @@ elif os.name == 'posix':
 | 
			
		|||
        IS_OSX=True
 | 
			
		||||
    elif os.uname()[0] == 'Linux':
 | 
			
		||||
        IS_LINUX=True
 | 
			
		||||
    elif os.uname()[0] == 'FreeBSD':
 | 
			
		||||
        IS_FREEBSD=True
 | 
			
		||||
 | 
			
		||||
def display_help(exit_code):
 | 
			
		||||
    print("mk_make.py: Z3 Makefile generator\n")
 | 
			
		||||
| 
						 | 
				
			
			@ -1181,6 +1187,8 @@ class JavaDLLComponent(Component):
 | 
			
		|||
                t = t.replace('PLATFORM', 'darwin')
 | 
			
		||||
            elif IS_LINUX:
 | 
			
		||||
                t = t.replace('PLATFORM', 'linux')
 | 
			
		||||
            elif IS_FREEBSD:
 | 
			
		||||
                t = t.replace('PLATFORM', 'freebsd')
 | 
			
		||||
            else:
 | 
			
		||||
                t = t.replace('PLATFORM', 'win32')
 | 
			
		||||
            out.write(t)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue