File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -630,13 +630,13 @@ $(libcppdir)/valueflow.o: lib/valueflow.cpp lib/analyzer.h lib/astutils.h lib/ca
630630 $(CXX ) ${INCLUDE_FOR_LIB} $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /valueflow.cpp
631631
632632$(libcppdir ) /vf/common.o : lib/vf/common.cpp lib/vf/common.h
633- $(CXX ) ${INCLUDE_FOR_LIB} $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/common.cpp
633+ $(CXX ) ${INCLUDE_FOR_LIB} -Ilib/vf $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/common.cpp
634634
635635$(libcppdir ) /vf/enumvalue.o : lib/vf/enumvalue.cpp lib/vf/enumvalue.h
636- $(CXX ) ${INCLUDE_FOR_LIB} $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/enumvalue.cpp
636+ $(CXX ) ${INCLUDE_FOR_LIB} -Ilib/vf $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/enumvalue.cpp
637637
638638$(libcppdir ) /vf/number.o : lib/vf/number.cpp lib/vf/common.h lib/vf/number.h
639- $(CXX ) ${INCLUDE_FOR_LIB} $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/number.cpp
639+ $(CXX ) ${INCLUDE_FOR_LIB} -Ilib/vf $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vf/number.cpp
640640
641641$(libcppdir ) /vfvalue.o : lib/vfvalue.cpp lib/config.h lib/errortypes.h lib/mathlib.h lib/templatesimplifier.h lib/token.h lib/utils.h lib/vfvalue.h
642642 $(CXX ) ${INCLUDE_FOR_LIB} $(CPPFLAGS ) $(CXXFLAGS ) -c -o $@ $(libcppdir ) /vfvalue.cpp
Original file line number Diff line number Diff line change 3030#include " ../lib/pathmatch.h"
3131#include " ../lib/utils.h"
3232
33+ static std::string incdir (std::string filename)
34+ {
35+ // TODO: make this generic
36+ if (filename.compare (0 ,7 ," lib/vf/" ) == 0 ) {
37+ return " -Ilib/vf" ;
38+ }
39+ return " " ;
40+ }
41+
3342static std::string builddir (std::string filename)
3443{
3544 if (filename.compare (0 ,4 ," lib/" ) == 0 )
@@ -127,7 +136,7 @@ static void compilefiles(std::ostream &fout, const std::vector<std::string> &fil
127136 std::sort (depfiles.begin (), depfiles.end ());
128137 for (const std::string &depfile : depfiles)
129138 fout << " " << depfile;
130- fout << " \n\t $(CXX) " << args << " $(CPPFLAGS) $(CXXFLAGS)" << (external?" -w" :" " ) << " -c -o $@ " << builddir (file) << " \n\n " ;
139+ fout << " \n\t $(CXX) " << args << incdir (file) << " $(CPPFLAGS) $(CXXFLAGS)" << (external?" -w" :" " ) << " -c -o $@ " << builddir (file) << " \n\n " ;
131140 }
132141}
133142
You can’t perform that action at this time.
0 commit comments