mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Allow disabling asm generation via cmake command line. Disable Asm for clang-cl on x86 due to LLVM issue
This commit is contained in:
parent
b2470df93a
commit
addd9fd105
@ -107,6 +107,9 @@ before_build:
|
||||
if ("$env:PLATFORM" -eq "x86") {
|
||||
$env:CFLAGS = "-m32";
|
||||
$env:CXXFLAGS = "-m32";
|
||||
|
||||
#Disable ASM generation for x86, there are errors with the llvm assembler
|
||||
$env:CMakeGenFlags = $env:CMakeGenFlags' -DASM_TESTS_ENABLED=FALSE'
|
||||
} else {
|
||||
$env:CFLAGS = "-m64";
|
||||
$env:CXXFLAGS = "-m64";
|
||||
|
@ -247,5 +247,7 @@ function(add_gsl_asm_test name)
|
||||
set_property(TARGET ${name}_asm PROPERTY FOLDER "GSL_asm_tests")
|
||||
endfunction()
|
||||
|
||||
if(ASM_TESTS_ENABLED)
|
||||
add_gsl_asm_test(span_tests)
|
||||
add_gsl_asm_test(span_compile_only)
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user