mirror of https://github.com/openXC7/prjxray.git
Fixes to enable compilation under clang-7.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
7d51518018
commit
1830202f7d
|
|
@ -24,6 +24,12 @@ add_subdirectory(third_party/gflags EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(third_party/cctz EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(third_party/abseil-cpp EXCLUDE_FROM_ALL)
|
||||
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-Wundefined-var-template" CXX_COMPILER_SUPPORTS_UNDEF_VAR)
|
||||
if(${CXX_COMPILER_SUPPORTS_UNDEF_VAR})
|
||||
add_compile_options("-Wno-undefined-var-template")
|
||||
endif()
|
||||
|
||||
option(YAML_CPP_BUILD_TESTS "" OFF)
|
||||
add_subdirectory(third_party/yaml-cpp EXCLUDE_FROM_ALL)
|
||||
target_include_directories(yaml-cpp PUBLIC
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ class Architecture {
|
|||
public:
|
||||
using Container = absl::variant<Series7>;
|
||||
virtual const std::string& name() const = 0;
|
||||
virtual ~Architecture() {}
|
||||
};
|
||||
|
||||
class Series7 : public Architecture {
|
||||
|
|
|
|||
Loading…
Reference in New Issue