Update beforeBuild.js
This commit is contained in:
parent
dd54a23a61
commit
ecf1aadba7
|
|
@ -5,7 +5,7 @@ const archMap = {
|
||||||
|
|
||||||
module.exports = async (buildContext) => {
|
module.exports = async (buildContext) => {
|
||||||
console.log(buildContext)
|
console.log(buildContext)
|
||||||
if (buildContext.platform !== "linux") return true
|
if (buildContext.platform.name !== "linux") return true
|
||||||
|
|
||||||
if (buildContext.arch in archMap) {
|
if (buildContext.arch in archMap) {
|
||||||
process.env.CC = `${archMap[buildContext.arch]}-linux-gnu-gcc`
|
process.env.CC = `${archMap[buildContext.arch]}-linux-gnu-gcc`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue