Commits

Richard Quirk committed 54400c8

Fix missing type_name declaration in error path

The symbol type_name is not declared in this scope. It looks like the
line that this change fixes was copied from elsewhere and not updated
with the correct 'symbol' variable previously.

  • Participants
  • Parent commits dea5840

Comments (0)

Files changed (2)

File src/engine/SCons/Conftest.py

 
     lang, suffix, msg = _lang2suffix(language)
     if msg:
-        context.Display("Cannot check for declaration %s: %s\n" % (type_name, msg))
+        context.Display("Cannot check for declaration %s: %s\n" % (symbol, msg))
         return msg
 
     src = includetext + includes 

File src/engine/SCons/SConfTests.py

             assert r, "__cplusplus not declared in C++ ??"
             r = sconf.CheckDeclaration('__cplusplus', language = 'C')
             assert not r, "__cplusplus declared  in C ??"
+            r = sconf.CheckDeclaration('unknown', language = 'Unknown')
+            assert not r, "unknown language was supported ??"
         finally:
             sconf.Finish()