Skip to content

Commit

Permalink
Merge pull request just-js#12 from billywhizz/main
Browse files Browse the repository at this point in the history
Fix libtcc build
  • Loading branch information
billywhizz authored Nov 30, 2023
2 parents 93793fa + 5899f64 commit cc111d6
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 cc111d6

Please sign in to comment.