Skip to content

Fix some compilation issues - #105

Merged
Oliver Layer (OliLay) merged 3 commits into
mainfrom
layer/fix-include
Aug 18, 2026
Merged

Fix some compilation issues#105
Oliver Layer (OliLay) merged 3 commits into
mainfrom
layer/fix-include

Conversation

@OliLay

Copy link
Copy Markdown
Collaborator
  • Fixes ignoring -include,
  • Remapping absolute include paths,
  • Disrespecting output flags

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

  • Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.

Pull request overview

This PR targets correctness issues in HOMCC’s compilation argument handling and path/output behavior, and publishes the change as a new Debian package revision.

Changes:

  • Fixes behavior around -include being ignored.
  • Adjusts handling of absolute include paths (remapping).
  • Fixes output-flag handling so output-related compiler flags are respected.
  • Bumps Debian package version/changelog to 1.0.4 describing the above fixes.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
debian/changelog Adds a 1.0.4 changelog entry documenting the compilation fixes.
.gitignore Content excluded from this review by policy.
homcc/server/server.py Content excluded from this review by policy (core server behavior).
homcc/server/init.py Content excluded from this review by policy.
homcc/client/init.py Content excluded from this review by policy.
homcc/common/arguments.py Content excluded from this review by policy (core argument parsing/normalization).
homcc/server/environment.py Content excluded from this review by policy (sandbox/environment behavior).
tests/server/environment_test.py Content excluded from this review by policy (relevant test coverage).
Files excluded by content exclusion policy (7)
  • .gitignore
  • homcc/client/init.py
  • homcc/common/arguments.py
  • homcc/server/init.py
  • homcc/server/environment.py
  • homcc/server/server.py
  • tests/server/environment_test.py

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread homcc/common/arguments.py
Comment on lines +498 to +500
if arg not in self.INCLUDE_PREFIX_EXCLUDED_ARGS:
for path_arg in path_option_prefix_args:
if arg.startswith(path_arg):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personal preference to keep indentation level lower:

Suggested change
if arg not in self.INCLUDE_PREFIX_EXCLUDED_ARGS:
for path_arg in path_option_prefix_args:
if arg.startswith(path_arg):
for path_arg in path_option_prefix_args:
if arg.startswith(path_arg) and arg not in self.INCLUDE_PREFIX_EXCLUDED_ARGS:

Feel free to ignore.

@OliLay
Oliver Layer (OliLay) merged commit 61146dd into main Aug 18, 2026
6 checks passed
@OliLay
Oliver Layer (OliLay) deleted the layer/fix-include branch August 18, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants