Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refine build system #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
jserv merged 1 commit into main from refine-build-system
Oct 16, 2025
Merged

Refine build system #127

jserv merged 1 commit into main from refine-build-system
Oct 16, 2025

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Oct 16, 2025
edited by cubic-dev-ai bot
Loading

  • Remove duplicate git submodule initialization from Makefile header
  • Consolidate submodule init logic into $(KCONFIGLIB) target with proper error handling

Summary by cubic

Refined the build system by moving Kconfig submodule init into the KCONFIGLIB target with clear error handling, and fixed small toolchain/linker issues to prevent build failures.

  • Refactors

    • Consolidated Kconfig submodule init into $(KCONFIGLIB) with a .git check and explicit error on missing repo.
  • Bug Fixes

    • Added missing space in _cmd_link_so.cxx.host to avoid merged flags.
    • Simplified clang++ resolution: derive CXX by substituting in CC.
    • Corrected HOSTOBJCOPY typo (objcpy -> objcopy).

- Remove duplicate git submodule initialization from Makefile header
- Consolidate submodule init logic into $(KCONFIGLIB) target with proper
 error handling
@jserv jserv merged commit 2e75289 into main Oct 16, 2025
6 checks passed
@jserv jserv deleted the refine-build-system branch October 16, 2025 09:36
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 3 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.
<file name="mk/toolchain.mk">
<violation number="1" location="mk/toolchain.mk:28">
Substituting &quot;clang&quot; across the full CC path rewrites directory components (e.g. `/usr/local/clang+llvm/bin/clang` becomes `/usr/local/clang+++llvm/bin/clang++`), so clang++ cannot be located on such installations; please limit the substitution to the basename.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

endif
ifeq ("$(CC_IS_CLANG)", "1")
override CXX := $(dir$(CC))$(subst clang,clang++,$(notdir$(CC)))
override CXX := $(subst clang,clang++,$(CC))
Copy link

@cubic-dev-ai cubic-dev-ai bot Oct 16, 2025
edited
Loading

Choose a reason for hiding this comment

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

Substituting "clang" across the full CC path rewrites directory components (e.g. /usr/local/clang+llvm/bin/clang becomes /usr/local/clang+++llvm/bin/clang++), so clang++ cannot be located on such installations; please limit the substitution to the basename.

Prompt for AI agents
Address the following comment on mk/toolchain.mk at line 28:
<comment>Substituting &quot;clang&quot; across the full CC path rewrites directory components (e.g. `/usr/local/clang+llvm/bin/clang` becomes `/usr/local/clang+++llvm/bin/clang++`), so clang++ cannot be located on such installations; please limit the substitution to the basename.</comment>
<file context>
@@ -25,7 +25,7 @@ ifndef CXX
 endif
 ifeq (&quot;$(CC_IS_CLANG)&quot;, &quot;1&quot;)
-override CXX := $(dir $(CC))$(subst clang,clang++,$(notdir $(CC)))
+override CXX := $(subst clang,clang++,$(CC))
 endif
 
</file context>
Suggested change
override CXX := $(subst clang,clang++,$(CC))
override CXX := $(dir$(CC))$(subst clang,clang++,$(notdir$(CC)))
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cubic-dev-ai cubic-dev-ai[bot] cubic-dev-ai[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /