Issue253 make support more extensions #266
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #253
Description:
In
Makefile.in
andMakefile_bisect_binary.in
, I replaced%.o: %.cpp ...
) with individually created rules for each output object file from each source file.flit bisect
still works after this change.main.cpp
outputsobj/main.cpp_gt.o
for thegt
target instead of the old nameobj/main_gt.o
(i.e., the extension used to be removed -- no longer the case).VPATH
fromMakefile.in
since it is no longer needed. It was needed to find source files for rules of the%.o: %.cpp
variety when they are spread out in different directories (think of VPATH as a search path for resolving these generic rules). Now that each file has its own individual rule, we no longer need to use VPATH.SOURCE += $(wildcard *.cpp)
andSOURCE += $(wildcard tests/*.cpp)
intocustom.mk
. They are also found inMakefile.in
for backward compatibility with oldcustom.mk
files. ATODO
was placed inMakefile.in
saying that those lines inMakefile.in
are deprecated and will be removed in FLiT v3.0.The result of this change is that ANY file added to the
SOURCE
variable incustom.mk
will be compiled with the C++ compiler. Furthermore, it is possible to have both source filesmain.cpp
andmain.cxx
since the generated object file names will keep the file extension and will not collide.Documentation:
Just a little documentation updates that were either unnecessary or inconsistent with the new changes. I did not feel there was a need to create a specific section to address this change since it is pretty much expected functionality from a user's perspective (although it was an undocumented difference from implicit expectations).
Tests:
tests/flit_cli/flit_bisect/tst_bisect.py
, rename one of the used source files fromfile4.cpp
tofile4.cxx
to further test the new functionality.No new tests were added, simply leveraging existing tests.