Skip to content

Commit

Permalink
Update cc.bzl
Browse files Browse the repository at this point in the history
  • Loading branch information
benradf authored Feb 21, 2023
1 parent f5b838b commit 841908b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions toolchains/cc/cc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -388,17 +388,11 @@ def nixpkgs_cc_configure(
nix_file_deps.append(nix_file)
elif nix_file_content:
nix_expr = nix_file_content

if attribute_path and nix_expr == None:
nixopts.extend([
"--argstr",
"ccType",
"ccTypeExpression",
"--arg",
"ccExpr",
"(import <nixpkgs> {{}}).{0}".format(attribute_path),
])
elif attribute_path:
nix_expr = "(import <nixpkgs> {{}}).{0}".format(attribute_path)
attribute_path = None

if attribute_path:
nixopts.extend([
"--argstr",
"ccType",
Expand Down

0 comments on commit 841908b

Please sign in to comment.