3804 Commits

Author SHA1 Message Date
Vincent Jicquel
4672c711ed Merge branch 'mr/jicquel/#75' into 'master'
Opt_Parse: reuse an already allocated parser_result if it exists

See merge request eng/toolchain/gnatcoll-core!238
2026-02-09 09:52:52 +00:00
Vincent Jicquel
c0cb9a8cb5 Opt_Parse: reuse an already allocated parser_result if it exists
Previously, a new parser_result was allocated even when the same option had
already been parsed. This led to memory leaks.

Issue: eng/toolchain/gnatcoll-core#75
2026-02-09 09:26:03 +00:00
Vincent Jicquel
2eb3244191 Merge branch 'mr/jicquel/#154' into 'master'
Fix mmap test on windows

Closes #154

See merge request eng/toolchain/gnatcoll-core!245
2026-02-09 07:35:10 +00:00
Vincent Jicquel
f5a3790b64 Fix mmap test on windows
`creat` is not always available on Windows, so it has been replaced with
call to `_open` using the appropriate flags.

Fixes #154
2026-02-06 14:35:53 +01:00
Vincent Jicquel
d61c2aa86a Merge branch 'mr/jicquel/gpr-issues#748' into 'master'
Disable rpath generation

See merge request eng/toolchain/gnatcoll-core!244
2026-01-29 15:22:19 +00:00
Vincent Jicquel
d91d1b18b6 Disable rpath generation
When a project is installed, most rpaths become unusable. Performance can
become an issue when searching for rpaths located on a remote filesystem.
Therefore, rpath generation is now disabled by default.

Issue: eng/gpr/gpr-issues#748
2026-01-29 15:46:57 +01:00
Vincent Jicquel
ce082d2361 Merge branch 'mr/jicquel/#153' into 'master'
Do not test GNATCOLL.Projects with cross environments and small typo fix

See merge request eng/toolchain/gnatcoll-core!243
2026-01-28 09:23:44 +00:00
Vincent Jicquel
62f3f33fce Fix typo in default test.gpr 2026-01-27 17:39:41 +01:00
Vincent Jicquel
20d6f69b61 Do not test GNATCOLL.Projects with cross environments
Issue: eng/toolchain/gnatcoll-core#153
2026-01-27 17:38:04 +01:00
Vincent Jicquel
3ab1ec39a6 Merge branch 'mr/jicquel/#152' into 'master'
Resolve elaboration warnings on premature access

See merge request eng/toolchain/gnatcoll-core!242
2026-01-27 09:40:08 +00:00
John Marino
86b6d89613 Resolve elaboration warnings on premature access
reference: https://github.com/AdaCore/gnatcoll-core/issues/109

While running elaboration checks on LibAdalang, these warnings were seen:
libadalang-doc_utils.ads:34:04: warning: in instantiation at gnatcoll-strings_impl.adb:123 [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning: "Access" attribute of "Make_Writable_Thread_Safe" before body seen [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning: possible Program_Error on later references [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning:   spec of unit "Doc_Utils" elaborated [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning:   "Access" of "Make_Writable_Thread_Safe" taken at gnatcoll-strings_impl.adb:123, instance at line 34 [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning: in instantiation at gnatcoll-strings_impl.adb:124 [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning: "Access" attribute of "Make_Writable_Thread_Unsafe" before body seen [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning: possible Program_Error on later references [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning:   spec of unit "Doc_Utils" elaborated [-gnatw.f]
libadalang-doc_utils.ads:34:04: warning:   "Access" of "Make_Writable_Thread_Unsafe" taken at gnatcoll-strings_impl.adb:124, instance at line 34 [-gnatw.f]

Moving the "Make_Writable" definition after the Make_Writable_Thread_Safe and
Make_Writable_Thread_Unsafe bodies resolved the warnings.

Internal issue: eng/toolchain/gnatcoll-core#152
2026-01-26 17:53:37 +01:00
Vincent Jicquel
cf7646116f Merge branch 'mr/jicquel/#142' into 'master'
Always add -fPIC flag for static Ada and C compilation and refactor the testsuite

Closes #142

See merge request eng/toolchain/gnatcoll-core!235
2026-01-22 11:01:26 +00:00
Vincent Jicquel
f331738466 Always add -fPIC flag for static Ada and C compilation
The TLS variables used in GNATCOLL.OS.Temp require to be compiled in
fPIC mode to be included in a relocatable encapsulated library
successfully.

Fixes: #142
2026-01-22 10:31:33 +00:00
Vincent Jicquel
d4e1c4ccde Do not write test output to a dedicated file for post_test.py
In the BasicTestDriver of gprproject, the test output is passed directly as
input to the post_test.py script. Therefore, this file is no longer needed.

no-tn-check: minor cleanup
2026-01-22 10:31:33 +00:00
Vincent Jicquel
156c81b247 Refactor testsuite code
Rewrite the root run-tests python script to share the same properties as
with sub run-tests scripts. The common properties are stored in a new
file common_testsuite.py, that inherits from gprproject testsuite.

Also, remove th usage of the drivers that are already defined in
gprproject, like basic.py, and the functions coming dedicated to gnatcov and
valgrind.
2026-01-22 10:31:33 +00:00
Hugo Guerrier
412919cb1c Merge branch 'topic/opt_parse/command_line_fallback' into 'master'
Opt_Parse: Provide a way to parse no arguments

Closes #151

See merge request eng/toolchain/gnatcoll-core!240
2026-01-20 18:32:17 +00:00
Hugo Guerrier
7b00cb072f Opt_Parse: Provide a way to parse no arguments
Before this patch, passing an empty argument list to the 'Parse'
function of the 'Opt_Parse.Argument_Parser' would always fallback on
parsing the application's command-line.
Now this behavior can be tuned.
2026-01-20 17:14:37 +01:00
Dorian Peron
32967c2123 Merge branch 'mr/150-opt_parse-add-internal-flags' into 'master'
Opt_Parse: Allow to hide flags from the generated help message

Closes #150

See merge request eng/toolchain/gnatcoll-core!236
2026-01-08 11:51:42 +00:00
Dorian Peron
42876ea26c test(gnatcoll-opt_parse): Test for hidden arguments 2026-01-08 10:41:21 +00:00
Dorian Peron
7105a530ca gnatcoll.opt_parse: Implement hidden arguments 2026-01-08 10:41:21 +00:00
Vincent Jicquel
d6472b855d Merge branch 'mr/jicquel/-1.fix-rlimit' into 'master'
Remove hardcoded python version in rlimit copy

See merge request eng/toolchain/gnatcoll-core!239
2026-01-08 10:26:29 +00:00
Vincent Jicquel
512a912c4a Remove hardcoded python version in rlimit copy
no-tn-check
2026-01-08 10:47:52 +01:00
Léo Creuse
0e860ccda2 Merge branch 'topic/coverage-fix-tests' into 'master'
Testsuite: Fix missing argument to gnatcov instrument call

See merge request eng/toolchain/gnatcoll-core!237
2025-12-17 17:01:07 +00:00
Léo Creuse
ae70df8097 Testsuite: Fix missing argument to gnatcov instrument call
A recent change adapted the coverage build of GNATCOLL to adapt to
a change in how gnatcov accepts the `--relocate-build-tree` switch.
It now systematically requires an argument. The previous change failed
to update the call to gnatcov in the testsuite drivers, thus resulting
in empty coverage reports.

This change remediates this issue.
2025-12-17 16:35:16 +01:00
Vincent Jicquel
6da2a7172a Merge branch 'mr/jicquel/#147-and-#148' into 'master'
Fixes several testsuite issues and improve opt_parse

Closes #148

See merge request eng/toolchain/gnatcoll-core!232
2025-12-02 09:25:09 +00:00