mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-16 11:41:46 -07:00
WIP(broken): Converting base library to use c-linkage symbols only
This commit is contained in:
@ -231,10 +231,12 @@ if ( $c_library )
|
||||
$executable = join-path $path_build "gen_c_library_test.exe"
|
||||
|
||||
if ($vendor -eq "clang") {
|
||||
$compiler_args += "-x"
|
||||
$compiler_args += "c"
|
||||
$compiler_args += '-x'
|
||||
$compiler_args += 'c'
|
||||
$compiler_args += '-std=c11'
|
||||
} elseif ($vendor -eq "msvc") {
|
||||
$compiler_args += "/TC"
|
||||
$compiler_args += "/TC" # Compile as C
|
||||
$compiler_args += "/Zc:__cplusplus" # Fix __cplusplus macro
|
||||
}
|
||||
|
||||
build-simple $path_build $includes $compiler_args $linker_args $unit $executable
|
||||
|
Reference in New Issue
Block a user