Skip to content

Commit

Permalink
fix tcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
billywhizz committed Nov 30, 2023
1 parent b695c29 commit 764420f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tcc/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function build (C = 'gcc', CC = 'g++') {
const status = new Int32Array(2)
exec('./configure', ['--extra-cflags=-mstackrealign -fPIC'], status)
assert(status[0] === 0)
exec('make', ['clean', 'libtcc.a'], status)
exec('make', [`CC=${C}`, 'clean', 'libtcc.a'], status)
assert(status[0] === 0)
assert(chdir('../../') === 0)
}
Expand Down

0 comments on commit 764420f

Please sign in to comment.