iAI
iAI copied to clipboard
plugin make file
Hello,
there was a problem for MakeFile in /phasar/examples/plugins
.
clang++ -std=c++17 -Wall -Wno-return-type-c-linkage -O0 -fPIC -shared `llvm-config --cppflags` MyIFDSProblem.cxx -o MyIFDSProblem.so
MyIFDSProblem.cxx:3:10: fatal error: 'phasar/DB/ProjectIRDB.h' file not found
#include "phasar/DB/ProjectIRDB.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:17: recipe for target 'ifdsproblem' failed
make: *** [ifdsproblem] Error 1
I replace
$(CXX) $(CXX_FLAGS) $(INCLUDE_DIRS) $(LLVM_FLAGS) $(IFDSPluginSrc) -o $(IFDSPlugin)
with
$(CXX) $(CXX_FLAGS) -I$(PHASAR_INCLUDE_DIR) $(LLVM_FLAGS) $(IFDSPluginSrc) -o $(IFDSPlugin)
to fix this.
Meanwhile, the plugin example is broken more, due to the InitialSeeds refactoring. The Makefile implies phasar to be installed to the system. It should be replaced with a proper CMakeLists.txt.
All of this would be a good first issue for newbies, despite not being the easiest possible "good first issue" - maybe a good second issue ;-)
Plugins were removed from phasar