Skip to content

Commit

Permalink
tc_build: llvm: Simplify host_target_is_enabled()
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Mar 17, 2023
1 parent 09d14a6 commit 4fd6541
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tc_build/llvm.py
Expand Up @@ -293,10 +293,7 @@ def host_target(self):
return uname_to_llvm.get(platform.machine())

def host_target_is_enabled(self):
if 'all' in self.targets:
return True

return self.host_target() in self.targets
return 'all' in self.targets or self.host_target() in self.targets

def project_is_enabled(self, project):
return 'all' in self.projects or project in self.projects
Expand Down

0 comments on commit 4fd6541

Please sign in to comment.