Skip to content

Commit

Permalink
MSVC: Generate debug pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Jun 10, 2024
1 parent c6289e2 commit 99e116b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ fix:
git commit -a -m "Formatting: Run clang-format" -m "From Makefile: make fix"
git push

msvc: src/*.cpp include/*.h
msvc: src/*.cpp include/*.h clean
# To compile the program using the Microsoft Visual C++ compiler,
# Launch the Visual Studio Developer Command Prompt
# and run the following command:
#
cl -std:c++17 -EHsc -utf-8 src/*.cpp -Iinclude -W1 -WX -Fe:stocksim-msvc.exe
cl -std:c++17 -EHsc -utf-8 -Iinclude -W1 -WX -O1 -guard:cf -MP -Zi \
src/*.cpp -Fe:stocksim-msvc.exe
rm *.obj *.ilk || true

check:
clang-format --dry-run --Werror src/*.cpp include/*.h
Expand Down

0 comments on commit 99e116b

Please sign in to comment.