We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like the top-level Makefile is using system headers for compiling one translation unit and local z3 headers for the other translation unit.
I would define a Z3PATH environment variable to enable use of local builds of Z3.
Here are my changes to the Makefile to build main.out
+Z3_API=$(Z3PATH)/src/api +
g++ $(TOY_ISA_FLAG) -std=c++11 main_z3.o measure/benchmark_toy_isa.cc measure/meas_mh_bhv.cc $(ISA)inst.cc $(TOY_ISA)inst.cc $(SEARCH)mh_prog.cc $(SEARCH)proposals.cc $(ISA)prog.cc $(SEARCH)cost.cc $(SRC)inout.cc $(VERIFY)validator.cc $(VERIFY)cfg.cc $(VERIFY)smt_prog.cc $(VERIFY)smt_var.cc $(SRC)utils.cc -o main.out ../z3/build/libz3$(SO_EXT) $(LINK_EXTRA_FLAGS)
g++ -I$(Z3_API) -I$(Z3_API)/c++ $(TOY_ISA_FLAG) -std=c++11 main_z3.o measure/benchmark_toy_isa.cc measure/meas_mh_bhv.cc $(ISA)inst.cc $(TOY_ISA)inst.cc $(SEARCH)mh_prog.cc $(SEARCH)proposals.cc $(ISA)prog.cc $(SEARCH)cost.cc $(SRC)inout.cc $(VERIFY)validator.cc $(VERIFY)cfg.cc $(VERIFY)smt_prog.cc $(VERIFY)smt_var.cc $(SRC)utils.cc -o main.out ../z3/build/libz3$(SO_EXT) $(LINK_EXTRA_FLAGS)
main_z3.o: main.cc
$(CXX) $(TOY_ISA_FLAG) $(CXXFLAGS) $(OS_DEFINES) $(EXAMP_DEBUG_FLAG) $(CXX_OUT_FLAG)main_z3.o -I../z3/src/api -I../z3/src/api/c++ main.cc
$(CXX) $(TOY_ISA_FLAG) $(CXXFLAGS) $(OS_DEFINES) $(EXAMP_DEBUG_FLAG) $(CXX_OUT_FLAG)main_z3.o -I$(Z3_API) -I$(Z3_API)/c++ main.cc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It looks like the top-level Makefile is using system headers for compiling one translation unit and local z3 headers for the other translation unit.
I would define a Z3PATH environment variable to enable use of local builds of Z3.
Here are my changes to the Makefile to build main.out
+Z3_API=$(Z3PATH)/src/api
+
main_z3.o: main.cc
The text was updated successfully, but these errors were encountered: