Skip to content

Commit

Permalink
Fix issue #142 Compiling from master fails since implementing NAM
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Feb 24, 2024
1 parent acfb4eb commit 5064883
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions trunk/src/NAM/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ def build(bld):
'./NeuralAmpModelerCore/Dependencies/nlohmann/',
]

cxx_flags = ["-std=c++17", "-Wno-sign-compare", "-Ofast"]

if not bld.env['LTO']:
cxx_flags.append ("-fno-fat-lto-objects")

bld.stlib(
name = 'libnam',
includes = incl,
export_includes=['..'],
source = src,
use = [],
cxxflags = ["-std=c++17",
"-Wno-sign-compare",
"-fno-fat-lto-objects",
"-Ofast",
],
cxxflags = cxx_flags,
target = 'nam',
)
2 changes: 1 addition & 1 deletion trunk/src/headers/gx_internal_plugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ class NeuralAmp: public PluginDef {
double fRec0[2];
double fRec1[2];
int need_resample;
double loudness;
float loudness;
bool is_inited;
Glib::ustring load_file;

Expand Down
1 change: 1 addition & 0 deletions trunk/waftools/cpu_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def configure(conf):
cpu_model = append_optimization_flags(conf, cxxflags)

if '-flto' in cxxflags:
conf.env['LTO'] = True
cxxflags.append ("-ffat-lto-objects")

cxxflags.append ("-std=c++17")
Expand Down

0 comments on commit 5064883

Please sign in to comment.