bazel-contrib / bazel-contrib/rules_foreign_cc

Missing option to run make on a different folder

Open
#943 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Today configure and make runs on the same folder.
When trying to build gdbserver this doesn't work.
gdbserver configure access folders outside of gdbserver folder (../) so source filegroup starts above it and configure command is set to gdb/gdbserver/configure.
But the make runs in gdb folder instead of gdbserver folder where it should.

Need to support make_work_dir or something like that.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how configure and make working directories are selected in the configure-and-make rules. Reproduce the gdbserver case described in the issue, where configure uses gdb/gdbserver/configure and make should run in the gdbserver folder. Done means a separate make working directory is supported and the gdbserver build succeeds.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.