feat: language

This commit is contained in:
Barrett Ruth 2025-10-24 01:21:16 -04:00
parent bd30fb626c
commit 48d4c6f113
4 changed files with 18 additions and 3 deletions

View file

@ -164,7 +164,7 @@ function M.compile_problem(debug)
local state = require('cp.state')
local config = require('cp.config').get_config()
local platform = state.get_platform()
local language = config.platforms[platform].default_language
local language = state.get_language() or config.platforms[platform].default_language
local eff = config.runtime.effective[platform][language]
local compile_config = (debug and eff.commands.debug) or eff.commands.build