Skip to content

Commit

Permalink
assignment expressions too new for some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
garyjg committed Jun 18, 2024
1 parent cb53174 commit 8853355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eol_scons/tools/netcdfcxx4.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def find_lib(nc4dir) -> tuple[Path, str]:
# raising a StopError can prevent help usage, so just print a warning, but
# only the first time.
global _error_printed
if not _error_printed and (_error_printed := True):
if not _error_printed:
_error_printed = True
print("netcdf-cxx4 library not found: %s" % (nc4dir))
return search_paths[0]

Expand Down
3 changes: 2 additions & 1 deletion eol_scons/tools/qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ def enable_module_linux(env, module, debug=False):
# RunConfig() returns nothing, treat that the same as if a
# CheckConfig() had failed, to avoid running pkg-config twice.
pkgc = 'pkg-config --cflags --libs ' + modpackage
if cflags := pc.RunConfig(env, pkgc):
cflags = pc.RunConfig(env, pkgc)
if cflags:
env.LogDebug("Before qt5 mergeflags '%s': %s" %
(pkgc, esd.Watches(env)))
env.MergeFlags(cflags, unique=1)
Expand Down

0 comments on commit 8853355

Please sign in to comment.