Skip to content

Commit

Permalink
fix null access on Windows builds, close #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurel300 committed Apr 19, 2021
1 parent 62272dd commit 45e35e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ammer/build/BuildTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BuildTools {
lb.a(' /link');
for (path in opt.libraryPaths)
lb.a(' /LIBPATH:"$path"');
for (lib in opt.libraries.concat(opt.staticLibraries)) // TODO: static/dynamic linking on Windows
for (lib in opt.libraries.concat(opt.staticLibraries != null ? opt.staticLibraries : [])) // TODO: static/dynamic linking on Windows
lb.a(' $lib.lib');
} else {
lb.ai('cc -m64 ${Sys.systemName() == "Mac" ? "-dynamiclib" : "-fPIC -shared"} -o ${e.target} ${e.requires.join(" ")}');
Expand Down Expand Up @@ -196,7 +196,7 @@ class BuildTools {
args.push("/link");
for (path in opt.libraryPaths)
args.push('/LIBPATH:$path');
for (lib in opt.libraries.concat(opt.staticLibraries)) // TODO: static/dynamic linking on Windows
for (lib in opt.libraries.concat(opt.staticLibraries != null ? opt.staticLibraries : [])) // TODO: static/dynamic linking on Windows
args.push('$lib.lib');
return run('${Ammer.config.pathMSVC}cl', args);
} else {
Expand Down

0 comments on commit 45e35e8

Please sign in to comment.