actually require cxx compiler to be clang

This commit is contained in:
Struma 2020-04-13 04:07:32 -04:00 committed by Roza
parent 13bd24a003
commit 5afa2ee527
2 changed files with 2 additions and 2 deletions

View file

@ -312,7 +312,7 @@ RB_METHOD(MiniFFI_call) {
"test esp, ebx\n"
"movnz esp, ebx"
: "+a"(ret)
: "c"(nimport * 4), "b"(&sp), "S"(&param), "D"(ApiFunction)
: "c"(nimport * 4), "S"(&param), "D"(ApiFunction)
: "memory");
#endif

View file

@ -8,7 +8,7 @@ host_system = host_machine.system()
compilers = {'cpp': meson.get_compiler('cpp'), 'objc': meson.get_compiler('objc'), 'objcpp': meson.get_compiler('objcpp')}
if compilers['objc'].get_id() != 'clang' or compilers['objcpp'].get_id() != 'clang'
if compilers['objc'].get_id() != 'clang' or compilers['objcpp'].get_id() != 'clang' or compilers['cpp'].get_id() != 'clang'
error('This program must be built with Clang! ( export CC=clang OBJC=clang CXX=clang++ OBJCXX=clang++ )')
endif