-
Notifications
You must be signed in to change notification settings - Fork 20
Windows builds #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
fcremo
wants to merge
22
commits into
revng:master
Choose a base branch
from
fcremo:feature/windows
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Windows builds #29
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
493409a
Use orc inspect to list installed files
d6c33f5
Pass cmake args as dictionary
dbd138b
Switch from headers build to headers components
3e9ab6b
LLVM: enable lld
aleclearmind a16a903
toolchain/win64: use same GCC as host
aleclearmind 87a1cc3
toolchain/win64/gcc: build dynamic libstdc++
aleclearmind dbd6870
Update toolchain/win{32,64}/mingw64
1694542
Fix windres not finding gcc
4b3b21f
Add pkgconfig component
71d5070
typical_cmake_builds: introduces Windows support
aleclearmind 800bca6
Introduce windows/llvm
2e0660d
Introduce windows/boost
aleclearmind 3ec16ca
Introduce windows/zlib
aleclearmind f86c198
Introduce windows/glib
aleclearmind bab4e31
Introduce windows/libffi
aleclearmind bdcc5fb
Introduce windows/qemu
aleclearmind 74b8d80
Introduce windows/revng
aleclearmind 60920ee
ui/qt: drop parallel make
aleclearmind 7954895
Introduce windows/ui/qt
aleclearmind f18a488
Introduce windows/ui/qt-creator
aleclearmind c8fecc8
Import win-libcxx
aleclearmind 1547e9d
Import mman-win32
aleclearmind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,30 +3,41 @@ | |
| #@ load("/lib/shell.lib.yml", "expand_args") | ||
| #@ load("/lib/cmake.lib.yml", "cmake") | ||
|
|
||
| --- | ||
| #@ def _default_cmake_options(cmake_build_type, cflags): | ||
| -DCMAKE_BUILD_RPATH: "\\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" | ||
| -DCMAKE_INSTALL_RPATH: "$RPATH_PLACEHOLDER/lib" | ||
| -DCMAKE_BUILD_TYPE: #@ cmake_build_type | ||
| -DCMAKE_EXE_LINKER_FLAGS: #@ cflags | ||
| -DCMAKE_SHARED_LINKER_FLAGS: #@ cflags | ||
| -DCMAKE_MODULE_LINKER_FLAGS: #@ cflags | ||
| -DCMAKE_CXX_FLAGS: #@ cflags | ||
| -DLLVM_TARGETS_TO_BUILD: "AArch64;AMDGPU;ARM;Mips;SystemZ;X86" | ||
| -DLLVM_ENABLE_DUMP: "ON" | ||
| -DLLVM_ENABLE_TERMINFO: "OFF" | ||
| -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT: "OFF" | ||
| -DLLVM_ENABLE_Z3_SOLVER: "OFF" | ||
| -DLLVM_INCLUDE_GO_TESTS: "OFF" | ||
| -DCMAKE_GENERATOR: "Ninja" | ||
aleclearmind marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #@ end | ||
|
|
||
| --- | ||
| #@ def default_cmake_options(*args): | ||
| #@ return dict(_default_cmake_options(*args)) | ||
| #@ end | ||
|
|
||
|
|
||
| #@yaml/text-templated-strings | ||
| --- | ||
| #@ def _configure_llvm(cmake_build_type=mandatory, cflags=mandatory, additional_cmake_options=mandatory, source_dir="$SOURCE_DIR"): | ||
| #@ cmake_opts = default_cmake_options(cmake_build_type, cflags) | ||
| #@ cmake_opts.update(additional_cmake_options) | ||
| - | | ||
| mkdir -p "$BUILD_DIR" | ||
| cd "$BUILD_DIR"; | ||
| (@= cmake @) \ | ||
| (@= cmake(additional_cmake_args=cmake_opts) @) \ | ||
| "(@= source_dir @)/llvm" \ | ||
| -GNinja \ | ||
| -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \ | ||
| -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \ | ||
| -DCMAKE_BUILD_TYPE="(@= cmake_build_type @)" \ | ||
| -DCMAKE_EXE_LINKER_FLAGS="(@= cflags @)" \ | ||
| -DCMAKE_SHARED_LINKER_FLAGS="(@= cflags @)" \ | ||
| -DCMAKE_MODULE_LINKER_FLAGS="(@= cflags @)" \ | ||
| -DCMAKE_CXX_FLAGS="(@= cflags @)" \ | ||
| -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \ | ||
| -DLLVM_ENABLE_DUMP=ON \ | ||
| -DLLVM_ENABLE_TERMINFO=OFF \ | ||
| -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \ | ||
| -DCMAKE_CXX_STANDARD=20 \ | ||
|
Comment on lines
+38
to
40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason why CMAKE_CXX_STANDARD is defined here and not by |
||
| -DLLVM_ENABLE_Z3_SOLVER=OFF \ | ||
| -DLLVM_INCLUDE_GO_TESTS=OFF \ | ||
| (@= expand_args(additional_cmake_options) @) \ | ||
| -Wno-dev | ||
| #@ end | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.