mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-18 09:12:18 +00:00
log_help: Include source_location
Use `std::experimental::source_location` because clang support is `??` Add `ENABLE_SOURCE_LOCATION` make variable and corresponding `YOSYS_ENABLE_SOURCE_LOCATION` define. Dummy out the struct if disabled and check for null instead of using `#ifdef` blocks everywhere.
This commit is contained in:
parent
10fea26fa9
commit
ae3514adfd
3 changed files with 54 additions and 12 deletions
3
Makefile
3
Makefile
|
@ -532,6 +532,9 @@ LIBS_VERIFIC += -Wl,--whole-archive $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VE
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_SOURCE_LOCATION),1)
|
||||
CXXFLAGS += -DYOSYS_ENABLE_SOURCE_LOCATION
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_COVER),1)
|
||||
CXXFLAGS += -DYOSYS_ENABLE_COVER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue