wamrc: Support cross building and linking LLVM shared libs (#1578)

1. Support cross building wamrc and installing it
2. Remove PIE flag for Windows to fix compilation error when compiled by clang
3. Support linking LLVM shared libs to help build with system default or custom
   LLVM installation and reduce binary size.
This commit is contained in:
Shengyun Zhou
2022-10-13 18:37:34 +08:00
committed by GitHub
parent e6c7125851
commit 2e77626d0f
2 changed files with 26 additions and 16 deletions

View File

@ -26,8 +26,8 @@
#include <malloc.h>
#include <process.h>
#include <winsock2.h>
#include <Windows.h>
#include <BaseTsd.h>
#include <windows.h>
#include <basetsd.h>
#ifdef __cplusplus
extern "C" {