function isPIL = isPILCodeGeneration(modelName)
% ISPILCODEGENERATION returns true if PIL project build is selected

%   Copyright 2022 The MathWorks, Inc.

hCS = getActiveConfigSet(modelName);
h = coder.internal.ModelCodegenMgr.getInstance(getModel(hCS));
xilInfo = h.MdlRefBuildArgs.XilInfo;
isPIL = xilInfo.IsPil;
end