Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,10 @@ NOBDEF char *nob_temp_running_executable_path(void);

#ifndef nob_cc
# if _WIN32
# if defined(__GNUC__)
# define nob_cc(cmd) nob_cmd_append(cmd, "cc")
# elif defined(__clang__)
# if defined(__GNUC__) && defined(__clang__)
Copy link
Contributor

@KillerxDBr KillerxDBr Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably break Visual Studio Clang, since it defines _MSC_VER, and MinGW Clang defines __GNUC__

# define nob_cc(cmd) nob_cmd_append(cmd, "clang")
# elif defined(__GNUC__) && !defined(__clang__)
# define nob_cc(cmd) nob_cmd_append(cmd, "gcc")
# elif defined(_MSC_VER)
# define nob_cc(cmd) nob_cmd_append(cmd, "cl.exe")
# elif defined(__TINYC__)
Expand Down