-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.patch
38 lines (34 loc) · 1.1 KB
/
Makefile.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ./class_public/Makefile 2024-06-17 15:12:09.433082000 -0400
+++ ./class_public2/Makefile 2024-06-11 18:29:16.499454000 -0400
@@ -18,9 +18,14 @@
########################################################
# your C compiler:
-CC = gcc
+#VM BEGINS
+#COCOA BEGINS
+#CC = gcc
+CC ?= $(C_COMPILER)
#CC = icc
#CC = pgcc
+#COCOA ENDS
+#VM ENDS
# your tool for creating static libraries:
AR = ar rv
@@ -30,7 +35,9 @@
# substitute python3 to python in the line below, or you can simply
# add a compilation option on the terminal command line:
# "PYTHON=python3 make all" (Thanks to Marius Millea for python3 compatibility)
-PYTHON ?= python
+# VM BEGINS
+PYTHON ?= $(CONDA_DIR)/bin/python
+#VM ENDS
# your optimization flag
OPTFLAG = -O3
@@ -195,7 +202,7 @@
else
grep -v "lgomp" python/setup.py > python/autosetup.py
endif
- cd python; export CC=$(CC); $(PYTHON) autosetup.py install || $(PYTHON) autosetup.py install --user
+ cd python; export CC=$(CC); $(PYTHON) autosetup.py install || CC=$(CC) $(PYTHON) autosetup.py install --user
rm python/autosetup.py
clean: .base