Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Windows (none MSYS) #101

Open
m420p opened this issue Mar 27, 2023 · 1 comment
Open

Building on Windows (none MSYS) #101

m420p opened this issue Mar 27, 2023 · 1 comment

Comments

@m420p
Copy link

m420p commented Mar 27, 2023

The removal of the double "/" in #89 broke the build using make outside of MSYS2 terminal.

This works for me inside MSYS2 and in PS/CMD

CFLAGS += -Wall -Werror -fpic -std=gnu99

ifeq ($(OS),Windows_NT)
    CC = gcc
    TARGET := libfzf.dll
ifeq (,$(findstring MSYS,$(MSYSTEM)))
	# On Windows, but NOT msys
    MKD = cmd //C mkdir
    RM = cmd //C rmdir //Q //S
else
    MKD = mkdir -p
    RM = rm -rf
endif
else
    MKD = mkdir -p
    RM = rm -rf
    TARGET := libfzf.so
endif
@AlejandroSuero
Copy link

@m420p when building it, it ouputs something similar to my issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants