From e56268d41996e42d8d6128b7d16db014dafcd5be Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 27 Mar 2021 04:18:17 -0700 Subject: [PATCH] don't require compiler_rt if not used --- litex/soc/integration/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 0e64b53fb..03ee545b4 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -54,7 +54,6 @@ soc_software_packages = [ # Builder ------------------------------------------------------------------------------------------ soc_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) -compiler_rt_directory = get_data_mod("software", "compiler_rt").data_location class Builder: def __init__(self, soc, @@ -136,6 +135,7 @@ class Builder: # Define the SoC/Compiler-RT/Software/Include directories. define("SOC_DIRECTORY", soc_directory) + compiler_rt_directory = get_data_mod("software", "compiler_rt").data_location define("COMPILER_RT_DIRECTORY", compiler_rt_directory) variables_contents.append("export BUILDINC_DIRECTORY") define("BUILDINC_DIRECTORY", self.include_dir)