-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
George Gensure
committed
Apr 12, 2019
1 parent
6c194c4
commit fedbf69
Showing
8 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Generates a desired number of actions according to a linear noise | ||
shape profile. The generated actions consume a deterministic amount | ||
of cpu time and depend on zero or one targets in order to establish | ||
their position in the overall organization of the build graph. | ||
|
||
To generate: | ||
|
||
bazel run tools:gen [shamt] [desired_targets] > BUILD | ||
|
||
*shamt* is a power-of-2 degree of the linear noise generated. The higher | ||
the *shamt*, the more levels to the graph. | ||
|
||
*desired_targets* is a total count of targets that should be generated. | ||
This is desired, not exact, and may shift slightly to ensure no empty | ||
levels. | ||
|
||
To exercise: | ||
|
||
bazel build :all | ||
|
||
Shortest time for a given parameter set wins. | ||
|
||
Feel free to use any options you want to improve your score. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
patches = ["//third_party:rules_ruby.patch"], | ||
name = "com_github_yugui_rules_ruby", | ||
sha256 = "868f7f7ff48af995ca5197a981baef717315e44b2ca0d52f01c2ccf50f3b9f33", | ||
strip_prefix = "rules_ruby-7771813c532e51367e25f9b3928822aad06d2183", | ||
url = "https://github.com/yugui/rules_ruby/archive/7771813c532e51367e25f9b3928822aad06d2183.zip", | ||
) | ||
|
||
load("@com_github_yugui_rules_ruby//ruby:def.bzl", "ruby_register_toolchains") | ||
|
||
ruby_register_toolchains() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- ruby/private/library.bzl 2019-04-12 14:28:59.026302254 -0400 | ||
+++ ruby/private/library.bzl 2019-04-12 14:29:02.890307286 -0400 | ||
@@ -38,7 +38,7 @@ | ||
), | ||
"data": attr.label_list( | ||
allow_files = True, | ||
- cfg = "data", | ||
+ cfg = "host", | ||
), | ||
}, | ||
) | ||
--- ruby/private/binary.bzl.orig 2019-04-12 14:33:22.042642589 -0400 | ||
+++ ruby/private/binary.bzl 2019-04-12 14:33:11.854629476 -0400 | ||
@@ -65,7 +65,7 @@ | ||
"rubyopt": attr.string_list(), | ||
"data": attr.label_list( | ||
allow_files = True, | ||
- cfg = "data", | ||
+ cfg = "host", | ||
), | ||
"main": attr.label( | ||
allow_single_file = True, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
load("@com_github_yugui_rules_ruby//ruby:def.bzl", "ruby_binary") | ||
|
||
cc_binary( | ||
name = "ex", | ||
srcs = ["ex.c"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
ruby_binary( | ||
name = "gen", | ||
srcs = ["gen.rb"], | ||
visibility = ["//visibility:public"], | ||
data = ["package.erb", "target.erb"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.