Francis Thérien
7837e57e93
Disable threads for os:any ( #21425 )
2023-02-24 09:07:35 +01:00
ringabout
f7bd2088aa
corrects the linkerexe of riscv64 in config ( #21292 )
2023-02-21 11:27:42 +08:00
ringabout
3b965f463b
bump csource_v2 to include fix for linking parameter maximum length ( #21216 )
...
> If accepted, I believe it should be used in csources_v2 and also backport 2.0
ref https://github.com/nim-lang/Nim/pull/21186
2023-01-02 22:10:26 +08:00
Chavdar Ivanov
e9ed090c33
Update nim.cfg ( #21204 )
...
tlsEmulation:on under NetBSD-10Beta and NetBSD-current produces an executable which crashes immediately as follows:
Core was generated by `koch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000047b4c2 in nimZeroMem ()
(gdb) bt
#0 0x000000000047b4c2 in nimZeroMem ()
#1 0x00000000004897b2 in threadVarAlloc__system_2162 ()
#2 0x000000000048980e in initThreadVarsEmulation ()
#3 0x0000000000489848 in PreMain ()
#4 0x000000000048986a in NimMain ()
#5 0x00000000004898a9 in main ()
I can't speak about the other BSDs.
2023-01-02 09:16:18 +01:00
ringabout
81d8ea95af
bump csource_v2 to include fixes for macos m1 ( #21147 )
2022-12-21 17:18:47 +08:00
ringabout
84200f28a1
bump csource_v2 hash ( #21118 )
2022-12-16 16:42:31 +08:00
ringabout
644318ad9c
the devel branch now uses csources_v2 ( #21108 )
...
* the devel branch now uses csources_v2
* fixes hash
* bump csources_v2
2022-12-16 07:58:40 +01:00
Jake Leahy
753868f16c
Fix #14476 ( #20878 )
...
* Use link from webpage. Closes #14476
* Update doc generation tests
* Update RST test
2022-11-21 14:59:06 -05:00
ringabout
d17b1d475c
revert #19891 ; nimRawSetjmp causes problems for mingw 32 bits too [backport] ( #20758 )
...
revert https://github.com/nim-lang/Nim/pull/19891
2022-11-11 08:42:31 +01:00
ringabout
dac5a56d70
use tlsEmulation:off for freebsd ( #20802 )
2022-11-10 05:48:30 +01:00
ringabout
1e15f975b8
fixes #19162 ; enable strictEffects for v2 ( #19380 )
...
* enable stricteffects
* add gcsafe
* fix tests
* use func
* fixes pegs tests
* explicitly mark repr related procs with noSideEffect
* add nimLegacyEffects
* change URL
* fixes docopt
* add `raises: []` to repr
* fixes weave
* fixes nimyaml
* fixes glob
* fixes parsetoml
* Apply suggestions from code review
* Update testament/important_packages.nim
* add legacy:laxEffects
2022-10-15 14:07:40 +02:00
ringabout
7394587217
move google fonts to the last part ( #20541 )
...
* move google fonts to the last part
* fixes tests
* fix rst2html
2022-10-11 19:42:02 +02:00
Juan Carlos
c273496d18
Add no-math-errno for GCC when build for Release ( #20503 )
...
* gcc matherrno
* changelog
2022-10-06 07:19:41 +02:00
ringabout
f89ba2c951
add default field support for object in ARC/ORC ( #20480 )
...
* fresh start
* add cpp target
* add result support
* add nimPreviewRangeDefault
* reduce
* use orc
* refactor common parts
* add tuple support
* add testcase for tuple
* cleanup; fixes nimsuggest tests
* there is something wrong with cpp
* remove
* add support for seqs
* fixes style
* addd initial distinct support
* remove links
* typo
* fixes tuple defaults
* add rangedefault
* add cpp support
* fixes one more bugs
* add more hasDefaults
* fixes ordinal types
* add testcase for #16744
* add testcase for #3608
* fixes docgen
* small fix
* recursive
* fixes
* cleanup and remove tuple support
* fixes nimsuggest
* fixes generics procs
* refactor
* increases timeout
* refactor hasDefault
* zero default; disable i386
* add tuples back
* fixes bugs
* fixes tuple
* add more tests
* fix one more bug regarding tuples
* more tests and cleanup
* remove messy distinct types which must be initialized by original types
* add tests
* fixes zero default
* fixes grammar
* fixes tests
* fixes tests
* fixes tests
* fixes comments
* fixes and add testcase
* undo default values for results
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2022-10-04 12:45:10 +02:00
metagn
cfff454cf9
closed ambiguous enum defaults to first overload ( #20457 )
...
* closed ambiguous enum defaults to first overload
* add warning
* turn to hint
* work around config
2022-10-01 13:30:23 +02:00
ringabout
97259a5ab3
fixes #19713 ; Revert "Remove tlsEmulation enabled from Windows + GCC config" ( #19119 ) ( #20327 )
...
* Revert "Remove tlsEmulation enabled from Windows + GCC config (#19119 ) [backport:1.6]"
This reverts commit 77b696c2c9 .
* increase nimTlsSize to 48000
* enable for windows
* fixes tests
* fixes tlsEmulation:on
2022-09-19 09:16:54 +02:00
ringabout
1f838d9af1
remove the old nimv019 define in the config ( #20133 )
...
remove the olf nimv019 define in the config
2022-09-01 18:07:49 +02:00
Amjad Ben Hedhili
70a8e0d65c
Docs auto dark mode ( #20188 )
...
* Implement auto dark mode
* Rename class
* Fix borders cutout
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2022-08-21 16:56:12 -04:00
ringabout
c08c455016
Revert "enable nimPreviewDotLikeOps" ( #19919 )
...
* Revert "enable nimPreviewDotLikeOps (#19598 )"
This reverts commit 6773ffa63d .
* add deprecated message
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2022-08-03 22:39:14 +08:00
Jake Leahy
c43a377057
Make imports/exports not be a dropdown in sidebar ( #19907 )
...
* Don't make a section be a dropdown if it has no child links
* - Cleaned up code
- Updated tests
* Document what the 'if' is checking
2022-07-16 17:41:18 -04:00
flywind
430a179307
default threads on ( #19368 )
...
* default threads on
* make rst gcsafe
* ignore threads option for nimscript
* threads off
* use createShared for threads
* test without threads
* avr threds off
* avr threads off
* async threads off
* threads off
* fix ci
* restore option
* make CI pleased
* fix ic tests
* Update config.nims
* add changelog
* Update changelog.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-07-06 13:06:41 +02:00
Jake Leahy
dd4cc266cd
Fixes #19900 ( #19906 )
...
Fixed tocRoot placement
2022-06-19 07:36:33 +02:00
JJ
e7e8f437c4
Keep the doc sidebar on the screen while scrolling ( #19851 )
...
* [docgen] Group sidebar sections into <details> (open by default)
* [docgen] Consistent indentation in generated HTML
(this is a boon for working on docgen's html/css output)
* [docgen] Move Source/Edit buttons inside main div
This makes styling the documentation significantly easier.
* [docgen] Somewhat consistent CSS formatting
* [docgen] Keep the sidebar onscreen while scrolling
* [docgen] Tweak CSS for the sticky sidebar
* [docgen] search type=text ==> type=search
* [docgen] Update expected doc output
* [docgen] Fix Group by Type sidebar placement bug
* [docgen] Curse you, whitespace (fix tests)
* [docgen] Fix rst2html tests
Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com >
2022-06-15 15:40:56 +02:00
Tanguy
251bdc1d5a
Windows: enable nimRawSetjmp by default [backport] ( #19891 )
...
* Windows: enable nimRawSetjmp by default
See #19197 . The default setjmp can randomly segfault on windows
* Attempt to disable the flag for bootstraping
* Disable styleCheck for c_setjmp
2022-06-14 12:37:31 +02:00
Andrey Makarov
bb839029d5
Move common Latex code into class nimdoc.cls ( #19734 )
2022-04-21 15:06:09 -04:00
flywind
ded8b0e541
rewrite docs JS in Nim ( #19701 )
...
* rewrite docs JS in Nim
* fixup
* fix nimdoc/rsttester
2022-04-09 17:50:57 +02:00
flywind
e649ddd09b
Revert "Load Google Fonts last ( #19683 )" ( #19693 )
...
This reverts commit abe3b0eb64 .
2022-04-06 20:27:51 +02:00
locriacyber
abe3b0eb64
Load Google Fonts last ( #19683 )
2022-04-06 18:08:27 +02:00
flywind
6773ffa63d
enable nimPreviewDotLikeOps ( #19598 )
2022-03-09 12:55:20 +01:00
Federico Ceratto
4b0636fba0
Add compilers and hints to default nim.cfg ( #18424 )
2022-02-07 18:05:41 -05:00
flywind
4f6b59de96
mangle names in nimbase.h using cppDefine ( #19395 ) [backport]
...
mangle names in nimbase.h
fix comments
2022-01-17 11:14:13 +01:00
Andreas Rumpf
908fc2a22e
let Nim support Nimble 0.14 with lock-file support [backport:1.6] ( #19236 )
2021-12-10 17:13:48 +01:00
Andrey Makarov
040d23e799
implement RST & Markdown quote blocks ( #19147 )
...
* implement RST & Markdown quote blocks
* compile with nim 1.0
* Fix indentation
2021-11-23 13:02:03 +01:00
Ryan Oldenburg
77b696c2c9
Remove tlsEmulation enabled from Windows + GCC config ( #19119 ) [backport:1.6]
...
This flag has a very significant performance impact on programs compiled with --threads:on. It is also apparently not needed anymore for standard circumstances. Can we remove the config? See https://github.com/nim-lang/Nim/issues/18146#issuecomment-876802676 for discussion and perf impact. [backport:1.6]
2021-11-11 06:48:22 +01:00
Andrey Makarov
997ccc5889
fix nimindexterm in rst2tex/doc2tex [backport] ( #19106 )
...
* fix nimindexterm (rst2tex/doc2tex) [backport]
* Add support for indexing in rst
2021-11-09 19:01:47 +01:00
Andrey Makarov
7ba2659f73
docgen: implement doc link resolution in current module ( #18642 )
2021-10-28 19:20:52 +02:00
Timothee Cour
f77dea01fd
define nimVersion automatically and avoid needing -d:nimVersion140 ( #18726 )
...
* define `nimVersion` and avoid needing -d:nimVersion140
* fix changelog
2021-10-17 08:37:52 +02:00
Miran
eede2bfb5d
update csources hash ( #18969 )
2021-10-07 10:48:09 +02:00
Andreas Rumpf
e9268b52d9
with this patch :idx: can be used for the index generation for LaTeX ( #18946 )
2021-10-03 07:21:08 +02:00
Miran
b74b914e4f
[backport] use old style hints in .cfg files ( #18917 )
...
refs #18085
2021-09-29 11:14:47 +02:00
Miran
7d2a4c0880
update csources hash ( #18885 )
2021-09-23 11:00:36 +02:00
Andrey Makarov
bbe05c1532
docgen: draw frame around active anchors ( #18607 )
2021-07-29 13:30:19 +02:00
Andrey Makarov
b88496ac67
fix compilation on Debian 7 (no git -C) ( #18427 )
...
* fix compilation on Debian 7 (no git -C)
* address review
* allow specify branch for testing unmerged csources
* temporarily change csources checkout parameters for testing
* Update tools/deps.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* fix failure
* Update config/build_config.txt
* set proper git branch/hash
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-07-06 20:09:56 +02:00
Timothee Cour
d3b27eb63e
link stable and devel docs in nim docs ( #18272 ) [backport:1.2]
2021-06-15 23:56:49 +02:00
drtheuns
51ab7ccec1
Fix JS error on index page and detect dark mode ( #18191 )
...
* Fix JS error on index page and detect dark mode
The theindex.html page doesn't have a dark mode switch so the main
function will error because `toggleSwitch` is not defined. Checks have
been added to prevent this from happening.
Also add automatic detection of system settings for dark-mode. This
could also be done with pure css, but then the dark mode variable
declarations would have to be duplicated to work with the switch so I
went with this approach.
* Fix nimdoc tests
* Fix rst2html tests
2021-06-07 18:40:09 +02:00
Andrey Makarov
ba3ec7b049
docs: Latex generation improvements ( #18141 )
...
* docs: improve Latex generation
* make it work on Windows + fix ] escaping
* minor fixes with escapes and style
2021-06-01 20:47:23 +02:00
Timothee Cour
3b1aabdcff
change --hint[X] => --hint:X in nim repo (avoids shell quoting issues) ( #18085 )
2021-05-26 09:51:48 +02:00
Andreas Rumpf
df429fa287
config system: special case -d:release and -d:danger [backport:1.4] ( #18051 )
2021-05-20 11:52:46 +02:00
Andrey Makarov
97970d9dcc
doc2tex: generate docs to Latex (#17997 )
...
* `doc2tex`: generate docs to Latex
* address some comments
2021-05-14 07:30:47 +02:00
Andrey Makarov
436af88d8c
follow-up #17837 : add Console for interactive sessions ( #17930 )
...
* follow-up #17837 : add `Console` for interactive sessions
* fix Latex
2021-05-06 10:58:01 +02:00