Fix issues with clang and gcc builds

This commit is contained in:
Daniel Donenfeld 2019-02-08 00:31:22 +00:00
parent 48ae07e96c
commit 30fb77e4c6
2 changed files with 3 additions and 15 deletions

View File

@ -229,8 +229,10 @@ function(add_gsl_asm_test name)
else()
target_compile_options(${name}_asm_options INTERFACE
-S
-o ${ASM_LOCATION}\\${name}.s
)
set_target_properties(${name}_asm PROPERTIES PREFIX "")
set_target_properties(${name}_asm PROPERTIES OUTPUT_NAME "${ASM_LOCATION}/${name}")
set_target_properties(${name}_asm PROPERTIES SUFFIX ".s")
endif(MSVC)
target_link_libraries(${name}_asm

View File

@ -37,20 +37,6 @@ struct fail_fast;
using namespace std;
using namespace gsl;
namespace
{
struct BaseClass
{
};
struct DerivedClass : BaseClass
{
};
struct AddressOverloaded
{
AddressOverloaded operator&() const { return {}; }
};
}
GSL_SUPPRESS(con.4) // NO-FORMAT: attribute
bool foo()
{