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:
parent
af60f9ead4
commit
f8d4d6cdc7
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user