Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arichardson committed Aug 7, 2023
1 parent fdc7645 commit df91353
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pycheribuild/projects/cross/cheribsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,11 @@ def build_and_install_subdir(self, make_args, subdir, skip_build=False, skip_cle
if is_lib and install_to_internal_sysroot:
# Due to all the bmake + shell escaping I need 4 dollars here to get it to expand SYSROOT
sysroot_var = "\"$$$${SYSROOT}\""
install_to_sysroot_cmd = "if [ -n {sysroot} ]; then {make} install {i} MK_TESTS=no DESTDIR={sysroot};" \
" fi".format(make=make_in_subdir, sysroot=sysroot_var, i=install_nometalog_cmd)
install_to_sysroot_cmd = (
f"if [ -n {sysroot_var} ]; then"
f" {make_in_subdir} install {install_nometalog_cmd} MK_TESTS=no DESTDIR={sysroot_var}; "
f"fi"
)
if skip_install:
if install_to_sysroot_cmd:
install_cmd = install_to_sysroot_cmd
Expand Down

0 comments on commit df91353

Please sign in to comment.