mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Windows fixes
This commit is contained in:
@@ -486,12 +486,15 @@ mut args := ''
|
||||
// Find clang executable
|
||||
fast_clang := '/usr/local/Cellar/llvm/8.0.0/bin/clang'
|
||||
args := a.join(' ')
|
||||
cmd := if os.file_exists(fast_clang) {
|
||||
'$fast_clang -I. $args'
|
||||
mut cmd := if os.file_exists(fast_clang) {
|
||||
'$fast_clang $args'
|
||||
}
|
||||
else {
|
||||
'cc -I. $args'
|
||||
'cc $args'
|
||||
}
|
||||
$if windows {
|
||||
cmd = 'gcc $args'
|
||||
}
|
||||
// Print the C command
|
||||
if c.show_c_cmd || c.is_verbose {
|
||||
println('\n==========\n$cmd\n=========\n')
|
||||
|
||||
Reference in New Issue
Block a user