Skip to content
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

Command substitution in configuration settings? #662

Open
harakka opened this issue Oct 6, 2024 · 2 comments
Open

Command substitution in configuration settings? #662

harakka opened this issue Oct 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@harakka
Copy link

harakka commented Oct 6, 2024

In a project we ship .vscode/settings.json like this:

    "makefile.configurations": [
        {
            "name" : "Linux - X64 - Tiles/Sound - Release",
            "makeArgs": [
                "-j4",
                "CLANG=1",
                "CCACHE=1",
                "NATIVE=linux64", 
                "RELEASE=1", 
                "TILES=1", 
                "SOUND=1"
            ]
        },
...

I would like to be able to do this or some equivalent:

            "makeArgs": [
                "-j$(nproc)",

Is there a way to accomplish this currently without having to modify the project Makefile?

@github-actions github-actions bot added the triage label Oct 6, 2024
@gcampbell-msft
Copy link
Collaborator

@harakka No, not currently. As of now, we don't implement any macro expansion that supports nproc when we parse the user defined makefile configuration.

If you're interested, please let us know and we can mark this as a feature request and we can let the community upvote it to indicate interest. Thanks!

@harakka
Copy link
Author

harakka commented Oct 7, 2024

Yes, I would be interested to see this as a feature.

@Yingzi1234 Yingzi1234 added enhancement New feature or request and removed triage labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants