Skip to content

Commit

Permalink
Update build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dr8co committed Apr 30, 2024
1 parent 510c822 commit d70fd59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ or use the full path to the MinGW `gcc` and `ar` executables.
For Visual Studio, use the Developer Command Prompt or Powershell:

```cmd
cl /c /O2 /std:clatest lite_string.c
lib /OUT:liblite-string.lib lite_string.obj
cl /c /O2 lite_string.c
lib /OUT:lite-string.lib lite_string.obj
```

`clang-cl` can be used instead of `cl` if available.
Expand All @@ -163,7 +163,7 @@ or [MSYS2](https://www.msys2.org/ "MSYS2"), follow the [UNIX instructions](#unix
For Visual Studio, use the Developer Command Prompt or Powershell:

```cmd
cl /c /O2 /std:clatest /LD lite_string.c
cl /c /O2 /LD lite_string.c
link /DLL /OUT:lite-string.dll lite_string.obj
```

Expand Down Expand Up @@ -288,10 +288,10 @@ On Windows:

```powershell
# C
cl /O2 /std:clatest example.c /OUT:example.exe /link /LIBPATH:"C:\path\to\built\library" liblite-string.lib
cl /O2 example.c /OUT:example.exe /link /LIBPATH:"C:\path\to\built\library" lite-string.lib
# C++
cl /O2 /std:c++20 example.cpp /OUT:example.exe /link /LIBPATH:"C:\path\to\built\library" liblite-string.lib
cl /O2 /std:c++20 /EHsc example.cpp /OUT:example.exe /link /LIBPATH:"C:\path\to\built\library" lite-string.lib
```

## API
Expand Down

0 comments on commit d70fd59

Please sign in to comment.