Skip to content

Commit

Permalink
Merge pull request #84 from dinkelk/obj-fix
Browse files Browse the repository at this point in the history
Fix `redo what` to only build objects for .c/.cpp
  • Loading branch information
dinkelk authored Oct 17, 2024
2 parents a52fa38 + cd98502 commit d0a0f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redo/rules/build_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,15 +671,15 @@ def _build(self, redo_1, redo_2, redo_3):

# If we still have not found source files to build this
# object, then we are out of luck. Alert the user.
error.error_abort("No Ada or C/C++source files were found to build '" + redo_1 + "'.")
error.error_abort("No Ada or C/C++ source files were found to build '" + redo_1 + "'.")

def input_file_regex(self):
"""
Match any Ada source file, as any Ada source file can produce
an object. In C/C++ only the .c or .cpp files produce object
code, so ignore header files.
"""
return [r"^((?!template/).)*\.ad[sb]$", r"^((?!template/).)*\.(h|hpp|c|cpp|s)$"]
return [r"^((?!template/).)*\.ad[sb]$", r"^((?!template/).)*\.(c|cpp|s)$"]

def output_filename(self, input_filename):
"""
Expand Down

0 comments on commit d0a0f25

Please sign in to comment.