mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 10:55:51 +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
40e6fe8263
commit
a7da7d3a56
3 changed files with 54 additions and 12 deletions
3
Makefile
3
Makefile
|
@ -519,6 +519,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