Skip to content

Commit

Permalink
Hot fix #2 to amend lasp#85
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelk committed Oct 17, 2024
1 parent 54c10d1 commit a5668a5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions redo/rules/build_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,14 @@ def _build(self, redo_1, redo_2, redo_3):
# Iterate over each directory in the C source path list
for directory in c_source_path:
# Walk the directory and find all files
for files in os.listdir(directory):
for file in files:
# Check if the file has one of the supported extensions
basename, fext = os.path.splitext(file)
if fext in source_extensions and \
basename not in existing_c_basenames:
c_source_exclude.append(os.path.basename(file))
for fname in os.listdir(directory):
# Check if the file has one of the supported extensions
full_file_path = os.path.join(directory, fname)
if os.path.isfile(full_file_path):
basename, fext = os.path.splitext(fname)
if fext in source_extensions and \
basename not in existing_c_basenames:
c_source_exclude.append(fname)

# Sym link any c objects into the executable object directory, since
# these would not have gotten symlinked like all the ada objects
Expand Down

0 comments on commit a5668a5

Please sign in to comment.