-
Notifications
You must be signed in to change notification settings - Fork 163
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
android w/ ghc 8.10 #782
Draft
plt-amy
wants to merge
52
commits into
develop
Choose a base branch
from
aliao/mobile-8_10-wip
base: develop
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
android w/ ghc 8.10 #782
Changes from 16 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
86407a5
First crack at bumping Nixpkgs
Ericson2314 6d5114a
New commit to Nixpkgs fork to unbreak eval
Ericson2314 5ab4f23
Need `includeNDK` for android apps now
Ericson2314 51665aa
Remove pins no longer needed now that `th-abstraction` is newer by de…
Ericson2314 fa0d585
Make ghc810 default
luigy 2e4508d
fix eval
luigy 587ba07
android: disable 32bit
luigy df66d64
Checkpoint
luigy 3ae2912
android: allow specifying an adaptive-icon xml
plt-amy f6401bf
bump reflex-dom
plt-amy 743ec78
bump reflex-dom
plt-amy fe6d678
bump reflex-dom
plt-amy b3580c5
bump reflex-dom
plt-amy e452125
Mandate java 1.8 compatibility
plt-amy dec99fb
track reflex-dom upstream
plt-amy fb75620
Merge remote-tracking branch 'origin/aliao/adaptive-icons' into aliao…
plt-amy 8392ac9
android: fix mkidr → mkdir
plt-amy 69eaf5f
android: Make default java sources overridable
ali-abrar cfdcc8c
Merge branch 'develop' into nixpkgs-21.05
Ericson2314 25ce7cc
text-jsstring: pin hashable version
ali-abrar f56a79d
Bump dependencies to fix ghc and ghcjs builds
ali-abrar 4aef269
haskell-overlays: update reflex-ghci and reflex-vty
ali-abrar 82f762e
splices: use forked ghc instead of patch
ali-abrar 4f6a353
mobile: set isStatic for mobile platforms
ali-abrar bfa91d1
android: upgrade to build-tools 30.0.2, gradle v7, and gradle-plugin 4.2
ali-abrar 3de2376
nixpkgs: update for ghcjs 8.10 hoogle fix
ali-abrar 51eb8a6
Merge remote-tracking branch 'origin/develop' into nixpkgs-21.05
ali-abrar ff98b99
Update changelog to reflect ghc865 legacy support
ali-abrar aace759
haskell-overlays: remove now-unnecessary gi-* overlays; add some over…
ali-abrar ffc973c
Fix warnings: Replace stdenv.lib with lib
ali-abrar de5e113
ghcjs8_6: Overrides for building against nixpkgs-21.05
ali-abrar 70699ce
ghcSplices-8_6: Apply autoreconf patch to fix compiler build
ali-abrar d574c2f
ghcSplices-8_6: override happy in boot packages
ali-abrar bb1a022
android: Actually copy the .aab release bundle when doing "gradle bun…
ali-abrar 315b211
Merge remote-tracking branch 'origin/develop' into aliao/mobile-8_10-wip
ali-abrar 7b14c43
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar 629e6ae
ghcSplices-8_10: Use upstream ghc-8.10.7-release instead of ghc-8.10
ali-abrar c9697ff
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar 8c68f23
android: Update ghc thunk to one that actually includes splices
ali-abrar d0c1509
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar 448d165
Temporarily disable armeabi-v7a
ali-abrar 1cbf402
android: sdk version 30
ali-abrar 56cdfae
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar a23d267
Switch to gold on aarch32
cidkidnix b8d5443
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar b33bd78
ghcjs8_10: Various FFI fixes
ali-abrar 6f255c8
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar d079f86
Merge branch 'aliao/mobile-8_10-wip' of https://github.com/reflex-frp…
ali-abrar b382919
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar 817ed49
Bump nixpkgs (update ghcjs8_10 source)
ali-abrar 875d262
Merge branch 'aliao/mobile-8_10-wip' of github.com:reflex-frp/reflex-…
ali-abrar c260f67
Merge remote-tracking branch 'origin/nixpkgs-21.05' into aliao/mobile…
ali-abrar 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
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
24 changes: 24 additions & 0 deletions
24
nixpkgs-overlays/mobile-ghc/8.6.y/android-patches/strict-align.patch
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,24 @@ | ||
diff --git a/libraries/bytestring/Data/ByteString/Builder/Prim/Internal.hs b/libraries/bytestring/Data/ByteString/Builder/Prim/Internal.hs | ||
index fb52404..572b4b7 100644 | ||
--- a/libraries/bytestring/Data/ByteString/Builder/Prim/Internal.hs | ||
+++ b/libraries/bytestring/Data/ByteString/Builder/Prim/Internal.hs | ||
@@ -198,7 +198,19 @@ liftFixedToBounded = toB | ||
|
||
{-# INLINE CONLIKE storableToF #-} | ||
storableToF :: forall a. Storable a => FixedPrim a | ||
+-- Not all architectures are forgiving of unaligned accesses; whitelist ones | ||
+-- which are known not to trap (either to the kernel for emulation, or crash). | ||
+#if defined(i386_HOST_ARCH) || defined(x86_64_HOST_ARCH) \ | ||
+ || ((defined(arm_HOST_ARCH) || defined(aarch64_HOST_ARCH)) \ | ||
+ && defined(__ARM_FEATURE_UNALIGNED)) \ | ||
+ || defined(powerpc_HOST_ARCH) || defined(powerpc64_HOST_ARCH) \ | ||
+ || defined(powerpc64le_HOST_ARCH) | ||
storableToF = FP (sizeOf (undefined :: a)) (\x op -> poke (castPtr op) x) | ||
+#else | ||
+storableToF = FP (sizeOf (undefined :: a)) $ \x op -> | ||
+ if ptrToWordPtr op `mod` fromIntegral (alignment (undefined :: a)) == 0 then poke (castPtr op) x | ||
+ else with x $ \tp -> copyBytes op (castPtr tp) (sizeOf (undefined :: a)) | ||
+#endif | ||
|
||
{- | ||
{-# INLINE CONLIKE liftIOF #-} |
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
{ lib }: | ||
self: super: { | ||
let | ||
versionWildcard = versionList: let | ||
versionListInc = lib.init versionList ++ [ (lib.last versionList + 1) ]; | ||
bottom = lib.concatStringsSep "." (map toString versionList); | ||
top = lib.concatStringsSep "." (map toString versionListInc); | ||
in version: lib.versionOlder version top && lib.versionAtLeast version bottom; | ||
in self: super: { | ||
haskell = super.haskell // { | ||
compiler = super.haskell.compiler // lib.mapAttrs (n: v: v.overrideAttrs (drv: { | ||
patches = (drv.patches or []) ++ lib.optionals self.stdenv.targetPlatform.useAndroidPrebuilt [ | ||
./8.6.y/android-patches/force-relocation.patch | ||
]; | ||
patches = let | ||
isAndroid = self.stdenv.targetPlatform.useAndroidPrebuilt; | ||
isGhc86x = versionWildcard [ 8 6 ] v.version; | ||
in | ||
(drv.patches or []) ++ | ||
lib.optionals isAndroid [ | ||
./8.6.y/android-patches/force-relocation.patch | ||
] ++ | ||
lib.optionals (isAndroid && isGhc86x) [ | ||
./8.6.y/android-patches/strict-align.patch | ||
]; | ||
})) { inherit (super.haskell.compiler) ghc865 ghcSplices-8_6 ghc8107 ghcSplices-8_10; }; | ||
}; | ||
} | ||
|
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.
is this intended?
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.
probably not, but it was there when i got here