Skip to content

Commit

Permalink
🩹 Fix faulty OS ID detection
Browse files Browse the repository at this point in the history
  • Loading branch information
neqochan committed Jul 22, 2022
1 parent 8d3d754 commit 7fcf63e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_ll",
version = "20220722.1",
version = "20220723.0",
execution_platforms_to_register = [
"@rules_ll//ll:ll_linux_exec_platform",
],
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ system requirements for ``rules_ll`` tend to be comparatively high.

Minimum system requirements:

- An `x86_64`` processor. You can check this via `uname -a`.
- An ``x86_64`` processor. You can check this via `uname -a`.
- A Linux kernel with 64-bit support. You can check this via
``getconf LONG_BIT``.
- A ``glibc`` version that supports ``mallinfo2``. This will be the case if
Expand Down Expand Up @@ -74,7 +74,7 @@ workspace:
touch WORKSPACE.bazel .bazelrc
echo cbb4eb1973a7fb49d15ced3fea6498f714f3ab0c > .bazelversion
echo 'bazel_dep(name="rules_ll", version="20220722.1")' > MODULE.bazel
echo 'bazel_dep(name="rules_ll", version="20220723.0")' > MODULE.bazel
Copy the following lines into the just created ``.bazelrc`` file:

Expand Down
2 changes: 1 addition & 1 deletion examples/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bazel_dep(name="rules_ll", version="20220722.1")
bazel_dep(name="rules_ll", version="20220723.0")
local_path_override(module_name = "rules_ll", path = "..")

# local_path_override(module_name = "hipsycl", path="/mnt/hipSYCL")
2 changes: 1 addition & 1 deletion ll/os.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ KNOWN_LIBRARY_PATHS = {
def _os_id(repository_ctx):
os_id = None
for line in repository_ctx.read("/etc/os-release").splitlines():
if line.startswith("ID"):
if line.startswith("ID="):
os_id = line.split("=")[-1]

if os_id == None:
Expand Down

0 comments on commit 7fcf63e

Please sign in to comment.