Skip to content

Commit

Permalink
Fix flake8 coding style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arichardson committed Jul 18, 2023
1 parent d7b0865 commit 85226ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ max-line-length = 120
extend-exclude =
3rdparty/
venv/
venv310/
.pytype/
show-source = true
statistics = true
Expand Down
13 changes: 6 additions & 7 deletions pycheribuild/projects/build_qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ class BuildQEMUBase(AutotoolsProject):
qemu_targets: "str"

use_smbd = BoolConfigOption("use-smbd", show_help=False, default=True,
help="Don't require SMB support when building QEMU (warning: most --test "
"targets will fail without smbd support)")
help="Don't require SMB support when building QEMU (warning: most --test "
"targets will fail without smbd support)")
gui = BoolConfigOption("gui", show_help=False, default=False,
help="Build a the graphical UI bits for QEMU (SDL,VNC)")
help="Build a the graphical UI bits for QEMU (SDL,VNC)")
build_profiler = BoolConfigOption("build-profiler", show_help=False, default=False,
help="Enable QEMU internal profiling")
help="Enable QEMU internal profiling")
enable_plugins = BoolConfigOption("enable-plugins", show_help=False, default=False,
help="Enable QEMU TCG plugins")
help="Enable QEMU TCG plugins")
prefer_full_lto_over_thin_lto = BoolConfigOption("full-lto", show_help=False, default=True,
help="Prefer full LTO over LLVM ThinLTO when using LTO")
help="Prefer full LTO over LLVM ThinLTO when using LTO")

@classmethod
def is_toolchain_target(cls):
Expand All @@ -94,7 +94,6 @@ def setup_config_options(cls, **kwargs):
cls.qemu_targets = typing.cast(str, cls.add_config_option(
"targets", show_help=True, help="Build QEMU for the following targets", default=cls.default_targets))


@classmethod
def qemu_binary(cls, caller: "Optional[SimpleProject]" = None, xtarget: "Optional[CrossCompileTarget]" = None,
config: "Optional[CheriConfig]" = None):
Expand Down
1 change: 1 addition & 0 deletions pycheribuild/projects/cross/littlekernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class BuildLittleKernel(CrossCompileMakefileProject):
set_commands_on_cmdline = True
include_os_in_target_suffix = False # Avoid adding -baremetal
use_mmu = BoolConfigOption("use-mmu", help="Compile with MMU support", default=False)

@classmethod
def needs_compiler_rt(cls):
return cls.get_crosscompile_target().cpu_architecture.is_32bit()
Expand Down
1 change: 0 additions & 1 deletion pycheribuild/projects/cross/webkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class BuildMorelloWebkit(CrossCompileCMakeProject):
help="Use offsets into the JS heap for object references instead of capabilities. "
"This option only affects the purecap backends.")


@classmethod
def setup_config_options(cls, **kwargs):
super().setup_config_options(**kwargs)
Expand Down

0 comments on commit 85226ce

Please sign in to comment.