mirror of
				https://github.com/vlang/v.git
				synced 2023-08-10 21:13:21 +03:00 
			
		
		
		
	fix -prod on OpenBSD
This commit is contained in:
		@@ -181,7 +181,14 @@ fn (v mut V) cc() {
 | 
				
			|||||||
		if debug_mode {
 | 
							if debug_mode {
 | 
				
			||||||
			debug_options = '-g -O0 -no-pie'
 | 
								debug_options = '-g -O0 -no-pie'
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		optimization_options = '-O3 -flto'
 | 
							optimization_options = '-O3'
 | 
				
			||||||
 | 
							mut have_flto := true
 | 
				
			||||||
 | 
							$if openbsd {
 | 
				
			||||||
 | 
								have_flto = false
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if have_flto {
 | 
				
			||||||
 | 
								optimization_options += ' -flto'
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if v.pref.ccompiler.contains('gcc') || guessed_compiler == 'gcc' {
 | 
						if v.pref.ccompiler.contains('gcc') || guessed_compiler == 'gcc' {
 | 
				
			||||||
		if debug_mode {
 | 
							if debug_mode {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user