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

Source and build directories should be configurable per kit #3827

Open
cjdb opened this issue Jun 13, 2024 · 0 comments
Open

Source and build directories should be configurable per kit #3827

cjdb opened this issue Jun 13, 2024 · 0 comments
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Milestone

Comments

@cjdb
Copy link

cjdb commented Jun 13, 2024

Brief Issue Summary

I work on LLVM, which is a federation of CMake projects. For example, cmake -S /path/to/llvm-project/llvm configures a build directory for building all of LLVM, while cmake -S /path/to/llvm-project/runtimes will only configure a directory for building the runtimes subproject (similarly for cmake -S /path/to/llvm-project/clang, cmake -S /path/to/llvm-project/lldb, etc.). It would be nice to specify the source directory per kit, so that I don't risk forgetting to change it when swapping from subproject to subproject.

Similarly, it would be good for each kit to specify its own build directory. This will make A/B tests and profile-guided optimisation builds less painful.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

Here's what I'd like to see:

[
  {
    "name": "Build LLVM (stage 1)",
    "sourceDirectory": "${workspaceFolder}/llvm",
    "buildDirectory": "${workspaceFolder}/build/llvm-stage-1",
    "cmakeSettings": {
        // ...
    }
  },
  {
    "name": "Build LLVM (stage 2)",
    "sourceDirectory": "${workspaceFolder}/llvm",
    "buildDirectory": "${workspaceFolder}/build/llvm-stage-2",
    "cmakeSettings": {
        // ...
    }
  },
  {
    "name": "Build LLVM (stage 3)",
    "sourceDirectory": "${workspaceFolder}/llvm",
    "buildDirectory": "${workspaceFolder}/build/llvm-stage-3",
    "cmakeSettings": {
        // ...
    }
  },
  {
    "name": "Build Clang",
    "sourceDirectory": "${workspaceFolder}/clang",
    "buildDirectory": "${workspaceFolder}/build/clang",
    "cmakeSettings": {
        // ...
    }
  },
  {
    "name": "Build runtimes",
    "sourceDirectory": "${workspaceFolder}/runtimes",
    "buildDirectory": "${workspaceFolder}/build/runtimes",
    "cmakeSettings": {
        // ...
    }
  },
]
@v-frankwang v-frankwang added enhancement an enhancement to the product that is either not present or an improvement to an existing feature and removed triage labels Jun 14, 2024
@gcampbell-msft gcampbell-msft added this to the Backlog milestone Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature
Projects
Status: Triage Needed
Development

No branches or pull requests

3 participants