diff options
| author | lebao3105 <[email protected]> | 2026-01-18 17:30:10 +0700 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-23 23:16:32 +0800 |
| commit | 18ffb736a64aa3cd79310da253f9277d8b8ca279 (patch) | |
| tree | 50ae94d0c1ecb08a78e0f7e58c840617ad11aea0 /xmake/modules/core/tools/fpc.lua | |
| parent | ba8452539e6a85d5e8cd1aaa9310a0fb5ba77c02 (diff) | |
feat: Add exceptions & objectdirs nameflags
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
| -rw-r--r-- | xmake/modules/core/tools/fpc.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua index 49be3156d..79cc4d62a 100644 --- a/xmake/modules/core/tools/fpc.lua +++ b/xmake/modules/core/tools/fpc.lua @@ -104,7 +104,7 @@ end -- make the includedir flag function nf_includedir(self, includedir) - return {"-FI" .. path.translate(includedir)} + return {"-Fi" .. path.translate(includedir)} end -- make the unitdir flag @@ -134,7 +134,17 @@ function nf_language(self, language) extendedpascal = "-Mextendedpascal", delphiunicode = "-Mdelphiunicode", } - return mode[language] + return mode[language:lower()] +end + +-- make the exception flag +function nf_exception(self, exp) + return {exp:startswith("no-") and "-Sx-" or "-Sx"} +end + +-- make the objectdir flag +function nf_objectdir(self, objectdir) + return {"-FU" .. path.translate(objectdir)} end -- make the build arguments list |
