Skip to content

Conversation

@fwcd
Copy link

@fwcd fwcd commented Mar 8, 2019

Fixes #109 .

Description of the changes:

  • Added CMake with a library target for the engine
  • Added cross-platform headers for common Win32 error codes
  • Added typealiases for Win32 data types

How changes were validated:

  • Manual testing using Apple LLVM version 10.0.0 (clang-1000.11.45.5) on macOS 10.13.6 High Sierra

@janisozaur
Copy link
Contributor

@fwcd please see #212, I was halfway through that when you submitted your changes. I asked Microsoft team to explain how would they want to pursue these changes.

@fwcd
Copy link
Author

fwcd commented Mar 8, 2019

@janisozaur Looks great, that is definitely a better solution than mine!

@fwcd
Copy link
Author

fwcd commented Mar 9, 2019

This branch now builds successfully both on Windows with msbuild and on macOS using xcodebuild (through CMake).

@fwcd fwcd mentioned this pull request Mar 9, 2019
@fwcd fwcd changed the title Added Clang support for the Calculator Engine Added CMake/Clang support for the Calculator Engine Mar 9, 2019
@HowardWolosky
Copy link
Contributor

@mcooley -- What would it take to get the pipeline updated as part of this change so that we could have PR/CI validation moving forward to ensure that a change doesn't break this support?

@mcooley
Copy link
Member

mcooley commented Mar 12, 2019

@mcooley -- What would it take to get the pipeline updated as part of this change so that we could have PR/CI validation moving forward to ensure that a change doesn't break this support?

Agreed, we should have some CI support so we don't break this. We currently have a job per configuration and currently one configuration per architecture--we could have an additional configuration for macOS or Linux. I'll look into this more.

@mcooley mcooley closed this Mar 12, 2019
@mcooley mcooley reopened this Mar 12, 2019
@danbelcher-MSFT
Copy link

Just to recap, there are two PRs right now that start to address this issue, #211 and #212. We're holding off on reviewing and merging those PRs until we can build in a macOS or Linux environment as part of our CI, so we don't regress this capability later.

janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 5, 2019
This is extract from microsoft#211 that enables compilation with GCC. With microsoft#211
now in the state of bitrot, I would rather try approaching it in smaller
steps that can be hopefully merged quicker, even if it does not provide
full support for all the features microsoft#211 provided.

This will _compile_ correctly with my (@janisozaur) GCC, but clang is
more picky about flexible array memebers and refuses to compile it yet.
I will extract remaining parts of microsoft#211 in future PRs.

I marked @fwcd as author, as he did most of the work in microsoft#211.
mcooley pushed a commit that referenced this pull request Jun 6, 2019
This is extract from #211 that enables compilation with GCC. With #211
now in the state of bitrot, I would rather try approaching it in smaller
steps that can be hopefully merged quicker, even if it does not provide
full support for all the features #211 provided.

This will _compile_ correctly with my (@janisozaur) GCC, but clang is
more picky about flexible array members and refuses to compile it yet.
I will extract remaining parts of #211 in future PRs.

I marked @fwcd as author, as he did most of the work in #211.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 6, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 10, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 11, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 11, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 19, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Jun 20, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
@ghost ghost added the no recent activity label Jul 13, 2019
@ghost
Copy link

ghost commented Jul 13, 2019

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. Thank you for your contributions to Windows Calculator!

janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Aug 2, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
@ghost ghost removed the no recent activity label Dec 3, 2019
@HowardWolosky HowardWolosky removed their assignment Dec 3, 2019
@ghost ghost added the no recent activity label Dec 10, 2019
@ghost
Copy link

ghost commented Dec 10, 2019

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. Thank you for your contributions to Windows Calculator!

janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Dec 10, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Dec 10, 2019
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
@ghost
Copy link

ghost commented Jan 21, 2020

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. Thank you for your contributions to Windows Calculator!

@mcooley
Copy link
Member

mcooley commented Mar 13, 2020

Given how stale this PR has become, it doesn't look like we'll be able to review and merge this as-is. Thanks for the contribution; we hope that some of these changes can make it in in smaller pieces in the future.

@mcooley mcooley closed this Mar 13, 2020
@ghost ghost removed the no recent activity label Mar 13, 2020
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Oct 16, 2021
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Oct 16, 2021
These are the changes extracted from microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.

@fwcd is the original author of these changes, I (@janisozaur) merely
rebased them on top of current master.

The rebase was luckily fairly straight-forward, with the only real
conflict coming from 7a7ceb5
(microsoft#412), but was trivial to
fix.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Sep 25, 2022
These are the changes based on microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.
janisozaur pushed a commit to janisozaur/calculator that referenced this pull request Sep 26, 2022
These are the changes based on microsoft#211 that port number's mantissa
from flexible member arrays, a non-standard C++ extension, to
std::vector, which enables compilation and linkage with clang.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixing approved issue needs author feedback tooling Work that primarily impacts the yaml or administration of the GitHub project itself.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alternative compilers

10 participants