File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 437
437
438
438
(defn- msvc-opt
439
439
[to ]
440
- (def pdb-name (string to " .pdb" ))
441
440
(case (build-type )
442
- :debug [" /Od" " /Zi" " /MDd" (string " /Fd" pdb-name )]
441
+ :debug [" /Od" " /DDEBUG" " /Zi" " /MDd" (string " /Fd" to " .pdb" )]
442
+ :develop [" /O2" " /DDEBUG" " /Zi" " /MDd" (string " /Fd" to " .pdb" )]
443
443
[" /O2" " /MD" ]))
444
444
(defn- msvc-defines []
445
445
(def res @[])
Original file line number Diff line number Diff line change 665
665
hash -r 2> /dev/null;
666
666
```` )
667
667
668
+ (deftemplate enter-ps-template
669
+ ````
670
+ # . bin/activate.ps1
671
+ $$global:_OLD_JANET_PATH=$$env:JANET_PATH
672
+ $$global:_OLD_PATH=$$env:PATH
673
+ $$env:JANET_PATH="$abspath"
674
+ $$env:PATH=$$JANET_PATH + "/bin:" + $$env:PATH
675
+ $$old_prompt = Get-Content function:prompt
676
+ function global:prompt {
677
+ Write-Host "($name) " -NoNewline
678
+ & $$old_prompt
679
+ }
680
+ function deactivate {
681
+ $$env:PATH=$$global:_OLD_PATH
682
+ $$env:JANET_PATH=$$global:_OLD_JANET_PATH
683
+ Remove-Item function:\deactivate
684
+ function global:prompt {
685
+ & $$old_prompt
686
+ }
687
+ }
688
+ ```` )
689
+
668
690
(deftemplate enter-cmd-template
669
691
````
670
692
@rem bin\activate.bat
695
717
(os/mkdir (path/join path " man" ))
696
718
(def opts {:path path :abspath (path/abspath path ) :name (path/basename path )})
697
719
(spit (path/join path " bin" " activate" ) (enter-shell-template opts ))
720
+ (spit (path/join path " bin" " activate.ps1" ) (enter-ps-template opts ))
698
721
(spit (path/join path " bin" " activate.bat" ) (enter-cmd-template opts ))
699
722
(spit (path/join path " bin" " deactivate.bat" ) (exit-cmd-template opts ))
700
723
(print " created project shell environment at " path )
You can’t perform that action at this time.
0 commit comments