Skip to content

[Suggestion] nob_cc_lib #252

Description

@XenoMustache

Compiler agnostic abstraction to append a library search path to nob_cc compile commands. Could look something like this:

#ifndef nob_cc_lib
#  if defined(_MSC_VER)
#    define nob_cc_lib(cmd, library_path) nob_cmd_append(cmd, nob_temp_sprintf("/LIBPATH:\"%s\"", (library_path)))
#  else
#    define nob_cc_lib(cmd, library_path) nob_cmd_append(cmd, nob_temp_sprintf("-L%s", (library_path)))
#  endif
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions