mirror of
https://github.com/prometheus/prometheus
synced 2025-02-06 23:24:34 +00:00
Merge pull request #281 from prometheus/feature/build/race-condition-binary
Include race condition runner.
This commit is contained in:
commit
d169e1d282
13
Makefile
13
Makefile
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
TEST_ARTIFACTS = prometheus search_index
|
||||
TEST_ARTIFACTS = prometheus prometheus.race search_index
|
||||
|
||||
include Makefile.INCLUDE
|
||||
|
||||
@ -23,9 +23,6 @@ advice:
|
||||
binary: build
|
||||
go build -o prometheus $(BUILDFLAGS) .
|
||||
|
||||
race_condition_binary: build
|
||||
CGO_CFLAGS="-I$(PWD)/build/root/include" CGO_LDFLAGS="-L$(PWD)/build/root/lib" go build -race -o prometheus $(BUILDFLAGS) .
|
||||
|
||||
build: preparation config model tools web
|
||||
|
||||
clean:
|
||||
@ -58,6 +55,12 @@ package: binary
|
||||
preparation: source_path
|
||||
$(MAKE) -C build
|
||||
|
||||
race_condition_binary: build
|
||||
CGO_CFLAGS="-I$(PWD)/build/root/include" CGO_LDFLAGS="-L$(PWD)/build/root/lib" go build -race -o prometheus.race $(BUILDFLAGS) .
|
||||
|
||||
race_condition_run: race_condition_binary
|
||||
./prometheus.race $(ARGUMENTS)
|
||||
|
||||
run: binary
|
||||
./prometheus $(ARGUMENTS)
|
||||
|
||||
@ -82,4 +85,4 @@ tools:
|
||||
web: preparation config model
|
||||
$(MAKE) -C web
|
||||
|
||||
.PHONY: advice binary build clean config documentation format model package preparation race_condition_binary run search_index source_path test tools
|
||||
.PHONY: advice binary build clean config documentation format model package preparation race_condition_binary race_condition_run run search_index source_path test tools
|
||||
|
Loading…
Reference in New Issue
Block a user