feat: Implement customFlags (#140)

pull/142/head
Lorenzo Rizzotti 1 year ago committed by GitHub
parent 6b576adba5
commit 6e4ef5ba8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,8 @@ const presets = {
module.exports = () => {
let c = {};
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), [])) {
const customFlags = oaConfig.customFlags ? oaConfig.customFlags.split(' ') : [];
for (const x of ('base,' + (oaConfig.cmdPreset || 'perf')).split(',').reduce((a, x) => a.concat(presets[x]?.split(' ')), customFlags)) {
if (!x) continue;
const [ k, v ] = x.split('=');

Loading…
Cancel
Save