[PR #341] [MERGED] UMK: implemented --out-dir optional command line argument. #327

Closed
opened 2026-05-05 03:45:51 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ultimatepp/ultimatepp/pull/341
Author: @klugier
Created: 1/5/2026
Status: Merged
Merged: 1/9/2026
Merged by: @mirek-fidler

Base: masterHead: klugier/umk-out-dir-flag


📝 Commits (1)

  • 91fcd8d UMK: implemented --out-dir optional command line argument.

📊 Changes

3 files changed (+53 additions, -17 deletions)

View changed files

📝 uppsrc/ide/app.tpp/umk_en-us.tpp (+5 -0)
📝 uppsrc/ide/app.tpp/umk_en-us.tppi (+12 -12)
📝 uppsrc/umk/umake.cpp (+36 -5)

📄 Description

This change introduces new --out-dir command line argument for UMK. The main motivation behind it is to isolate the build to avoid problems. Last week I had an issue when project builds fine with TheIDE, but there were linking problem when building it on Mac. Cleaning cache directory helped to solve this problem. Also, with this change you can specify output directory within repo directory and thanks to that we can force to rebuild the whole project by simply removing build directory.

While 'a' option is useful when you are using umk directly in your terminal, it is less handy when using the build automation tools such as Makefiles or Justfiles.

Usage example:

3p/umk/umk.out ./,3p/uppsrc UppTerm 3p/umk/CLANG.bm \
    --hub-dir 3p/hub \
    --out-dir build/cache \
    -br +GUI,SHARED build/upp-term

To force rebuild, just run

rm -rf build/cache

I was also considering --cache-dir, but in the end decided to stay with --out-dor. Please let me know if you have any concerns about naming convention.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ultimatepp/ultimatepp/pull/341 **Author:** [@klugier](https://github.com/klugier) **Created:** 1/5/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `klugier/umk-out-dir-flag` --- ### 📝 Commits (1) - [`91fcd8d`](https://github.com/ultimatepp/ultimatepp/commit/91fcd8d459b79d8d4d0e6ae894d6b2d90ef8267f) UMK: implemented --out-dir optional command line argument. ### 📊 Changes **3 files changed** (+53 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `uppsrc/ide/app.tpp/umk_en-us.tpp` (+5 -0) 📝 `uppsrc/ide/app.tpp/umk_en-us.tppi` (+12 -12) 📝 `uppsrc/umk/umake.cpp` (+36 -5) </details> ### 📄 Description This change introduces new --out-dir command line argument for UMK. The main motivation behind it is to isolate the build to avoid problems. Last week I had an issue when project builds fine with TheIDE, but there were linking problem when building it on Mac. Cleaning cache directory helped to solve this problem. Also, with this change you can specify output directory within repo directory and thanks to that we can force to rebuild the whole project by simply removing build directory. While 'a' option is useful when you are using umk directly in your terminal, it is less handy when using the build automation tools such as Makefiles or Justfiles. Usage example: ``` 3p/umk/umk.out ./,3p/uppsrc UppTerm 3p/umk/CLANG.bm \ --hub-dir 3p/hub \ --out-dir build/cache \ -br +GUI,SHARED build/upp-term ``` To force rebuild, just run ``` rm -rf build/cache ``` I was also considering --cache-dir, but in the end decided to stay with --out-dor. Please let me know if you have any concerns about naming convention. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:45:51 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#327
No description provided.