1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: 32-bit option

This commit is contained in:
BigBlack 2019-09-12 00:26:35 +08:00 committed by Alexander Medvednikov
parent af60f9ead4
commit f8d4d6cdc7

View File

@ -119,6 +119,7 @@ fn (v mut V) cc() {
a << '-mmacosx-version-min=10.7'
}
cflags := v.get_os_cflags()
// add .o files
for flag in cflags {
if !flag.value.ends_with('.o') { continue }
@ -315,6 +316,17 @@ fn find_c_compiler_default() string {
}
fn find_c_compiler_thirdparty_options() string {
$if windows { return '' }
if '-m32' in os.args{
$if windows {
return '-m32'
}$else{
return '-fPIC -m32'
}
}else{
$if windows {
return ''
}$else{
return '-fPIC'
}
}
}