diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-06-20 22:01:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 22:01:25 -0700 |
commit | 2d18dfbcd2928d0ba5a7260bc09da624455c5859 (patch) | |
tree | f504e94c0a5b4784b5786241e57b2423b6e7f71a /tools | |
parent | 6ce5e722f16e74deff65db87eb1244f4396b2832 (diff) | |
parent | 493e9b2614df79728deb40d5ec91edefa91a89c7 (diff) |
Merge pull request #187 from haberman/fixes
Build fixes from fuzz target.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make_cmakelists.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/make_cmakelists.py b/tools/make_cmakelists.py index 22f3757..a4923c8 100755 --- a/tools/make_cmakelists.py +++ b/tools/make_cmakelists.py @@ -48,7 +48,7 @@ class BuildFileFunctions(object): else: print("Warning: no such file: " + file) - if filter(IsSourceFile, files): + if list(filter(IsSourceFile, files)): # Has sources, make this a normal library. self.converter.toplevel += "add_library(%s\n %s)\n" % ( kwargs["name"], @@ -272,8 +272,8 @@ def GetDict(obj): globs = GetDict(converter) -execfile("WORKSPACE", GetDict(WorkspaceFileFunctions(converter))) -execfile("BUILD", GetDict(BuildFileFunctions(converter))) +exec(open("WORKSPACE").read(), GetDict(WorkspaceFileFunctions(converter))) +exec(open("BUILD").read(), GetDict(BuildFileFunctions(converter))) with open(sys.argv[1], "w") as f: f.write(converter.convert()) |