compiler: 32-bit option
							parent
							
								
									af60f9ead4
								
							
						
					
					
						commit
						f8d4d6cdc7
					
				|  | @ -119,6 +119,7 @@ fn (v mut V) cc() { | ||||||
| 		a << '-mmacosx-version-min=10.7' | 		a << '-mmacosx-version-min=10.7' | ||||||
| 	} | 	} | ||||||
| 	cflags := v.get_os_cflags() | 	cflags := v.get_os_cflags() | ||||||
|  | 
 | ||||||
| 	// add .o files
 | 	// add .o files
 | ||||||
| 	for flag in cflags { | 	for flag in cflags { | ||||||
| 		if !flag.value.ends_with('.o') { continue } | 		if !flag.value.ends_with('.o') { continue } | ||||||
|  | @ -315,6 +316,17 @@ fn find_c_compiler_default() string { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| fn find_c_compiler_thirdparty_options() string { | fn find_c_compiler_thirdparty_options() string { | ||||||
| 	$if windows { return '' } | 	if '-m32' in os.args{ | ||||||
| 	return '-fPIC' | 		$if windows { | ||||||
|  | 			return '-m32' | ||||||
|  | 		}$else{ | ||||||
|  | 			return '-fPIC -m32' | ||||||
|  | 		} | ||||||
|  | 	}else{ | ||||||
|  | 		$if windows { | ||||||
|  | 			return '' | ||||||
|  | 		}$else{ | ||||||
|  | 			return '-fPIC' | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue