Skip to content

Commit 8d8c38a

Browse files
chalcolithjemc
authored andcommitted
fix llvm3.9 builds on windows (ponylang#1272)
1 parent 4d05ca1 commit 8d8c38a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

premake5.lua

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
for lib in string.gmatch(output, "-l(%S+)") do
4242
links { lib }
4343
end
44+
for lib in string.gmatch(output, "lib.(%S+).lib") do
45+
links { lib }
46+
end
4447
end
4548

4649
function llvm_config(opt)

src/common/platform.h

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# pragma warning(disable:4510)
4343
# pragma warning(disable:4512)
4444
# pragma warning(disable:4610)
45+
# pragma warning(disable:4146)
4546
/** Disable warning about __declspec(restrict) not being used at function
4647
* definition. According to the documentation, it should not matter.
4748
* Also, using extern "C" does not remove this warning.

src/libponyc/codegen/host.cc

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# pragma warning(disable:4624)
88
# pragma warning(disable:4141)
99
# pragma warning(disable:4291)
10+
# pragma warning(disable:4146)
1011
#endif
1112

1213
#include <llvm/IR/Constants.h>

0 commit comments

Comments
 (0)