Movatterモバイル変換


[0]ホーム

URL:


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

Abstract specialized Targets into generic Targets #62

Open
@coder137

Description

@coder137

Currently, BuildCC follows an explicit Target-Toolchain method
ex.

// ToolchainsToolchain_gcc gcc;Toolchain_arm_gcc arm_gcc;Toolchain_msvc msvc;// Specialized targetsExecutableTarget_gccgccTarget(gcc);ExecutanleTarget_gccarmgccTarget(arm_gcc);ExecutableTarget_msvcmsvcTarget(msvc);// TODO, Generic targetsExecutableTarget_genericgccGeneric(gcc);ExecutableTarget_genericarmGeneric(arm_gcc);ExecutableTarget_genericmsvcGeneric(msvc);

This keeps only theToolchain definitions explicit with the low-level details hidden from regular users

  • UpdateToolchain with ID (GCC, MSVC, CLANG, etc for toolchain family-specific implementations)
  • Target Triple Architecture for Clang and GCC compilers
  • CreateExecutableTarget_generic with case based overrides
    • Detect host OS
    • Target file extension dependent on Toolchain Id, Target Type and Host OS
    • BuildCC argparse module contain AddCustomToolchain specifications for complete control through the command line
  • Identify other common Toolchain families and document their Executable and Library command line invocations.
    • GCC
    • MSVC
    • Clang
    • MinGW

Future Features

  • C++20 Modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp