-
Notifications
You must be signed in to change notification settings - Fork 136
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
Windows: fixes #288
Open
ghost
wants to merge
151
commits into
flang-compiler:master
Choose a base branch
from
isuruf: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.
Open
Windows: fixes #288
Changes from all commits
Commits
Show all changes
151 commits
Select commit
Hold shift + click to select a range
cc17c56
MAINT: include win32 headers
xoviat 4fba341
ENH: allow getcpu to work on windows
xoviat c60f680
Windows Fixes
isuruf 92afe7b
Remove ifndefs
isuruf 17db496
Rename WIN32->_WIN32
isuruf f0f63ca
Add empty methods for __abort_* methods temporarily
isuruf 1adca50
More windows fixes
isuruf 1aab8cd
Don't use grep or sort
isuruf 33ef678
Fix generating upperilm.sort
isuruf 2d50a20
Add truncate definition; thanks to @xoviat
isuruf 4632c1b
Add empty methods for mkstemp and vasprintf
isuruf 50ede60
ENH: implement new win32 functions
xoviat c3a67fa
Use asprintf from https://github.com/littlstar/asprintf.c
isuruf 2dc1e0c
Implement dtime3f for windows. credits to xoviat
isuruf 9174a4e
Remove annoying asserts
isuruf 80cc848
sed WINNT, WIN32, WIN64 -> _WIN32 for runtime/flang
isuruf d061cad
FIX anonymous structs
xoviat 78cbebd
Fix CMake
isuruf ad7b0e2
Misc MSVC fixes
isuruf a260b46
sed UINT64->FLANG_UINT64
isuruf 9be89a4
sed INT64->FLANG_INT64
isuruf 93fe556
Revert "sed INT64->FLANG_INT64"
isuruf 343ebbe
sed INT64->FLANG_INT64
isuruf 199329d
FIX: update useless ifdef
xoviat 2cb73b2
More windows fixes
isuruf fcdcf20
Fix CMakeLists.txt
isuruf 6d2d5de
[runtime/amod] remove _win32 ifdefs
xoviat 878305f
[runtime/utils] add gettimeofday
xoviat b4bfef5
Fix utils.c
isuruf 14a6a71
Fix link errors by making empty methods for now
isuruf 55140d2
remove differing declarations for windows
isuruf cd3c1ea
Set WINDOWS_EXPORT_ALL_SYMBOLS property for for shared flangrti target.
6dc6978
Set the target linker language for the flang libraries to CXX on wind…
446e390
Add appveyor.yml
isuruf b6ff98d
[cmake] add compiler definitions
xoviat ca4fe23
Revert "sed WINNT, WIN32, WIN64 -> _WIN32 for runtime/flang"
isuruf dd3561a
Update FuncArgMacros.h
isuruf 88d5e51
[runtime/global] remove winnt ifdef
xoviat b3ce0e3
Remove unnecessary changes
isuruf 8c14983
Add more target definitions
isuruf a84a7f8
[tools/flang2/exputil] fix getsname2
xoviat 41562a5
Comment out insert_argrsrv
isuruf 6f30c09
Fix linking errors
isuruf 831f150
Fix missing ompstub.lib
db62727
Use "lib" prefix instead of "_static" suffix for static runtime libra…
27fa0d9
Fix main function
isuruf 1e39f37
Add WINDOWS_EXPORT_ALL_SYMBOLS for shared flang library
128550c
[runtime/trace] create stackwalker
xoviat b24f16c
[cmake] add include directories and objects
xoviat 8483ef9
[runtime/trace] fix header
xoviat 907d679
[utils] implement fortio_binary_mode
xoviat 669a8af
[runtime/iso_c] undefine linux
xoviat de6b981
Remove adding -DLINUX
isuruf 9ca3a7a
[cmake] minor cleanup
xoviat d98604b
[cmake] always build tests
xoviat 23ffa7a
[cmake] fix
xoviat 085b5c6
[cmake] set standalone=1
xoviat cba0ec5
[cmake] show test suite message
xoviat 86d9284
[lit] support windows
isuruf 3112783
[cmake] revert changes
xoviat b278f10
[cmake/test] add verbose mode
xoviat d4b37da
[runtime/mthdecls] uncomment some functions
xoviat 5b2d42a
Revert "[runtime/mthdecls] uncomment some functions"
isuruf 7666f00
[runtime/flang]. re enable faint fsync (#23
xoviat 086ca05
[runtime] fix trace handler (#24)
xoviat 1e54c29
[runtime/curdir] implement gethostname (#25)
xoviat 1922a57
[runtime/stdio] fix win32 defs (#26)
xoviat 2e57878
Don't special case windows in lit.cfg
isuruf cf95a52
Download llvm source for additional tools
isuruf 2623704
Comment downloading llvm
isuruf 7256d11
Download only utils
isuruf 6548729
Move msys path to front
isuruf c68e879
Workaround for lit
isuruf 574eb91
[cmake] run tests in debug mode
xoviat dfb6acf
Remove running tests for now
isuruf a46cd40
[runtime/util] implement filetime_to_int64
xoviat 71828d9
Make TARGET_OS and TARGET_ARCHITECTURE cached variables
isuruf 5a77a7d
[runtime/include] add filetime header
xoviat b26a3be
[runtime/util] implement filetime emulation
xoviat a0d19a5
[runtime/dtime] include header
xoviat f5cad3c
[runtime/util] fix
xoviat f9341ce
Fix cmake warning
isuruf ff97e48
Fix nmake install
isuruf a064ff4
[runtime/util] fix
xoviat 81e04a4
Update util.c
xoviat 4cb8a61
Align to cache line set to 32 for windows
isuruf a1bd1cd
Signal: drop handlers (#42)
xoviat eb40c0b
Ws2 32 (#43)
xoviat ecf31e4
[flang2/ll_structure] add linker options to enum
xoviat f542d67
ifdef for LLVM version
isuruf ad54611
Fix for -linker -directive
isuruf 856e4b8
Revert "Fix for -linker -directive"
isuruf 0f8c27b
Check LLVM version at runtime
isuruf 623b71f
[flang2:ll_structure] fix name
xoviat 7108e6b
Send `-no-flang-libs` when compiling flang.lib
isuruf 120c333
Fix libomp searching
isuruf 442c686
Add asprintf.c unconditionally to avoid errors
isuruf b1dbb00
Fix header
isuruf 96f2644
Add -DPGDLL
isuruf fcfddeb
[travis] init
xoviat 3a6f2f4
[cmake] fix arch
xoviat c738f49
Revert flang_int64 / flang_uint64
xoviat 8937577
[runtime] redefined INT64 type
xoviat 5540d27
Fix floating-point register behavior on win32
xoviat 7e5baa2
Install conda=4.3
isuruf bc1761d
Fix complex matrix multiplication
xoviat f70c7b7
Register boolean "es" argument.
xoviat c45ea61
Remove dependency that confused ninja-build.
xoviat 6315df5
Set preprocessor filename to output filename
xoviat 856a96b
Merge pull request #88 from isuruf/ninja-build
xoviat 1bc7adb
Fix regression in host-fp-folding
xoviat f7ca018
Fix CMake regression
xoviat 281cc42
CMake: do depdencies correctly
xoviat a9daa89
one
xoviat 31950cc
CMake: Fix missing symbols introduced in gh-90
xoviat f94b2c5
Fix CMake Warning
isuruf 0cc7ab5
Run make install in travis.yml
isuruf 78d1589
Don't check fortran ABI
isuruf 683d410
Update .appveyor.yml
isuruf b594878
Flang support F90
isuruf 48077b4
Make iso_c_bind OBJECT libraries so that no linking is done
isuruf d632315
Travis: disable testing
xoviat a1009b9
Travis: set branches
xoviat 550cdb8
Test install in appveyor
isuruf 1ab1d9b
Fix install
isuruf a0160d7
Fix Fortran compiler identification
isuruf 4ca7af6
Fix parallel build failures
isuruf 50ed86e
reduce diff
isuruf 521a5b5
Fix install failure
isuruf 90c6470
Add workaround for ninja
isuruf 12859cf
Fix incorrect rounding behavior
xoviat 1070803
Remove unnedded functions
xoviat 09072d9
Revert "Revert "CMake: Cleanup depedency issues""
xoviat 3595879
CMake: set fortran module directory for static
xoviat 3d45b53
CMake: remove library dependency
xoviat 05134c8
Fix warnings
isuruf e315207
CMake: fix build race condition
xoviat 371f751
CMake: fix race conditions
xoviat 0073abe
Add "use" statements to require modules
xoviat 39e9250
Merge pull request #113 from isuruf/fix-race
isuruf 90b9da3
Merge pull request #115 from flang-compiler/master
xoviat a5cac1f
CMake handles module dependencies now that flang -E works
isuruf 577c8e8
Merge pull request #119 from isuruf/mod
xoviat 7c7f39c
Merge pull request #120 from flang-compiler/master
xoviat db2935b
Merge pull request #121 from flang-compiler/master
xoviat 6e7bd95
Merge pull request #122 from flang-compiler/master
xoviat 9158963
Merge pull request #124 from flang-compiler/master
xoviat d2ba3c4
Appveyor: cache packages
xoviat ccc1502
Trigger build
xoviat 4ddc948
Merge pull request #126 from flang-compiler/master
xoviat e160efe
Merge pull request #127 from flang-compiler/master
xoviat 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 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
branches: | ||
only: | ||
- master | ||
- windows | ||
- windows-rebased | ||
|
||
environment: | ||
global: | ||
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64 | ||
APPVEYOR_SAVE_CACHE_ON_FAILURE: true | ||
|
||
cache: | ||
- '%CONDA_INSTALL_LOCN%\pkgs' | ||
|
||
os: Visual Studio 2017 | ||
|
||
platform: | ||
- x64 | ||
|
||
install: | ||
# Add path, activate `conda` and update conda. | ||
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
# Add our channels. | ||
- cmd: conda config --add channels defaults | ||
- cmd: conda config --add channels conda-forge | ||
- cmd: conda install --yes llvmdev clangdev flang-meta cmake | ||
- cmd: conda install --yes -c isuruf kitware-ninja | ||
|
||
|
||
build_script: | ||
- ps: mkdir build | ||
|
||
- cd build | ||
- set "PATH=%cd%\bin;%PATH%" | ||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 | ||
- cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX% -DFLANG_INCLUDE_TESTS=ON -DFLANG_TEST_VERBOSE_MODE=ON -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=ON -DLLVM_MAIN_SRC_DIR=C:\llvm_src .. | ||
- ps: | | ||
Push-AppveyorArtifact .\CMakeFiles\CMakeOutput.log | ||
Push-AppveyorArtifact .\CMakeFiles\CMakeError.log | ||
|
||
- ps: | | ||
cmake --build . 2>&1 | Out-File build_output.txt | ||
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) } | ||
Push-AppveyorArtifact .\build_output.txt | ||
Get-Content .\build_output.txt -Tail 500 | ||
|
||
- ps: Compress-Archive -Path C:\projects\flang\build\bin -DestinationPath C:\Projects\flang\bin.zip | ||
- ps: Push-AppveyorArtifact C:\Projects\flang\bin.zip | ||
- ps: Compress-Archive -Path C:\projects\flang\build\lib -DestinationPath C:\Projects\flang\lib.zip | ||
- ps: Push-AppveyorArtifact C:\Projects\flang\lib.zip | ||
|
||
test_script: | ||
- cmd: cmake --build . --target install |
This file contains 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
language: c | ||
|
||
cache: | ||
directories: | ||
- $HOME/.conda/pkgs | ||
- $HOME/miniconda/pkgs | ||
|
||
branches: | ||
only: | ||
- master | ||
- windows | ||
|
||
install: | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
- bash miniconda.sh -u -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda config --add channels conda-forge --force | ||
- conda update -q conda | ||
|
||
- conda create -q -n test-environment | ||
flang-meta | ||
llvmdev | ||
clangdev | ||
openmp | ||
cmake | ||
|
||
- source activate test-environment | ||
- conda info -a | ||
|
||
# For testing | ||
#- pip install lit | ||
|
||
script: | ||
- mkdir -p build | ||
- cd build | ||
- cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DFLANG_INCLUDE_TESTS=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_Fortran_COMPILER=flang .. | ||
- make -j4 | ||
- make install -j4 | ||
#- make check-flang | ||
|
||
notifications: | ||
email: false |
This file contains 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 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 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this checking the error code of
Push-AppveyorArtifact
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. Ugh.