Skip to content
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

gccgo compatibility #10

Merged
merged 1 commit into from
Jun 1, 2020
Merged

gccgo compatibility #10

merged 1 commit into from
Jun 1, 2020

Conversation

paleozogt
Copy link
Contributor

@paleozogt paleozogt commented Feb 15, 2020

Lots of projects use reflect2.TypeOf, but they can't be built with gccgo because of the way reflect2.TypeByName is implemented. Here's a slight modification to have gccgo skip type_map.go.

Projects that use reflect2.TypeByName will still be unbuildable by gccgo, but all the rest of reflect2 should work.

This fixes #6 and #9

…t only works with gcgo and doesn't work with gccgo. Disabling compilation of type_map.go for gccgo.
@codecov-io
Copy link

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   60.58%   60.58%           
=======================================
  Files          20       20           
  Lines         751      751           
=======================================
  Hits          455      455           
  Misses        280      280           
  Partials       16       16
Impacted Files Coverage Δ
type_map.go 47.45% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94122c3...ce5cf29. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not use gccgo to compile .go file.
3 participants