Add CLANG support

This commit is contained in:
2025-12-24 12:50:13 +08:00
parent a1c54beffe
commit 22588fee9d
3 changed files with 11 additions and 4 deletions

View File

@@ -38,9 +38,14 @@ endif
WIN32 = host_machine.system() in ['windows', 'cygwin']
MSVC = cc.get_id() == 'msvc'
CLANG = cc.get_id() == 'clang'
if not MSVC
deps += cc.find_library('m')
if CLANG
deps += cc.find_library('m', required: false)
else
deps += cc.find_library('m')
endif
endif
if WIN32