Skip to content

Cesium should support Response Files to avoid the shells command line limitations #1013

Open

Description

@leha-bot

There is an inter-language tooling spec about tooling interoperation: github.com/ecostd - which has begun to evolve apart of the ISO C++ Standard to simplify the work on specification and untie it from C++ to make spec cross-languages available.
The Response Files (RSPs) are the standard work-arounds for shell command line length limitations, but every major C++ compiler (like GCC, MSVC, Clang (it also has at least two formats of RSPs) has its own format. The P3051R2 C++ proposal defines the standard format for RSPs based on JSON (with Json Schema).
TL;DR of this proposal (other than previous paragraph):

  • Use known JSON format for all tooling;
  • The old flags are supported via arguments array inside JSON
  • The logical compile/link features are supported via options object with reserved std.**** params (currently there is only std.param defined for composing multiple RSPs either by inheriting "before", or appending "after" current file:

    Additional response files can be inherited by specifying a { "std.param": { "pre": [ "file.json" ] } } option. Or they can be appended by specifying a { "std.param": { "post": [ "file.json" ] } } option.

These files are meant to be generated by tooling: build systems (like CMake, it has its own logic for these files somewhere here: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Source/cmSystemTools.cxx#L638 ), package managers and even compilers (e.g. some offloading use-cases like nvcc + gcc). Also these files often written by humans in case of long command lines. How tooling/people would know which features are suppported by tool - is, obviously, determined by the tool's documentation, and how tool itself - and its ability to "reflect" it, e.g.: --help command line flag, or another EcoStd paper about tools introspection 😀 - https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2717r5.html (this paper is evolved into RFC: ecostd/rfcs#2) - but this is an another interesting story...

The plan for feature is:

  • Add the --std-param:<RSP-filename> flag;
  • Add the simplest arguments form as a transitional way;
  • Add the ability to compose multiple RSPs (std.param option);
  • Think about Cesium-specific compile/link options and reserve the "cesium.****" option placeholders;
  • Support our own options (as the "std.***" options are not defined for now..)

Activity

  1. added
    kind:feature
    status:help-wanted
    area:compiler
    on Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:compilerkind:featurestatus:help-wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions