Merge pull request #38 from francesco-st/patch-2

Use -static-libgcc only if the compiler is gcc
This commit is contained in:
Francesco 2021-02-17 19:53:13 +00:00 committed by GitHub
commit a40acce382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ foreach data_module : ['core', 'fonts', 'plugins', 'colors']
endforeach
lite_link_args = []
if get_option('buildtype') == 'release'
if cc.get_id() == 'gcc' and get_option('buildtype') == 'release'
lite_link_args += ['-static-libgcc', '-static-libstdc++']
endif