modeld: remove support for small model (#23803)

* modeld: remove support for small model

* use extra
old-commit-hash: 8a19d9892e
This commit is contained in:
Adeeb Shihadeh
2022-02-28 10:32:39 -08:00
committed by GitHub
parent 8f3e51f73f
commit 2e91f016bb
10 changed files with 18 additions and 35 deletions

View File

@@ -31,9 +31,6 @@ thneed_src = [
use_thneed = not GetOption('no_thneed')
use_extra = True # arch == "larch64"
lenv['CXXFLAGS'].append('-DUSE_EXTRA=true' if use_extra else '-DUSE_EXTRA=false')
if arch == "aarch64" or arch == "larch64":
libs += ['gsl', 'CB']
libs += ['gnustl_shared'] if arch == "aarch64" else ['pthread', 'dl']
@@ -68,7 +65,7 @@ common_model = lenv.Object(common_src)
# build thneed model
if use_thneed and arch in ("aarch64", "larch64"):
fn = "../../models/big_supercombo" if use_extra else "../../models/supercombo"
fn = File("#models/supercombo").abspath
compiler = lenv.Program('thneed/compile', ["thneed/compile.cc"]+common_model, LIBS=libs)
cmd = f"cd {Dir('.').abspath} && {compiler[0].abspath} {fn}.dlc {fn}.thneed --binary"