Modified page size for different operating systems
All checks were successful
/ test (push) Successful in 19s
All checks were successful
/ test (push) Successful in 19s
This commit is contained in:
parent
4d3b47df32
commit
d98911cc8f
1 changed files with 9 additions and 1 deletions
|
@ -4,7 +4,15 @@ package build
|
||||||
func (build *Build) MemoryAlign() int {
|
func (build *Build) MemoryAlign() int {
|
||||||
switch build.Arch {
|
switch build.Arch {
|
||||||
case ARM:
|
case ARM:
|
||||||
return 0x4000
|
switch build.OS {
|
||||||
|
case Linux:
|
||||||
|
return 0x10000
|
||||||
|
case Mac:
|
||||||
|
return 0x4000
|
||||||
|
default:
|
||||||
|
return 0x1000
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0x1000
|
return 0x1000
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue