You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 466 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Here is the patch for camlidldll script which allows bulding both byte code
and native DLLs. Native mode is activated with "-opt" option:
camlidldll -opt ....
-linkobjs option is also introduced for native mode, specifing non-caml
.obj files which we need to link. .obj files without this option are passed
to ocamlopt when creating output-obj file.
Original bug ID: 466
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Here is the patch for camlidldll script which allows bulding both byte code
and native DLLs. Native mode is activated with "-opt" option:
camlidldll -opt ....
-linkobjs option is also introduced for native mode, specifing non-caml
.obj files which we need to link. .obj files without this option are passed
to ocamlopt when creating output-obj file.
[---cut---]
Index: camlidldll.tpl
RCS file: /caml/bazar-ocaml/camlidl/tools/camlidldll.tpl,v
retrieving revision 1.4
diff -u -r1.4 camlidldll.tpl
--- camlidldll.tpl 2000/08/21 12:55:02 1.4
+++ camlidldll.tpl 2001/07/31 18:07:12
@@ -28,37 +28,51 @@
resfile=''
tlbcounter=0
+camlobjs_mask=".cm[oa]"
+linkobjs_mask=".lib|*.obj"
+ocamlc="ocamlc -custom"
+com_lib="com.cma"
+camlruntime_lib="libcamlrun.lib"
+
rm -f $resourcefile
Parse the command line
while : ; do
my options
-linkopt)
ocamlc options
echo $2 | sed -e 's/^-l\(.*\)$/lib\1.lib/'
other options
files
tlbcounter=
expr $tlbcounter + 1
shift
done
@@ -69,7 +83,7 @@
rm -f $resourcefile
fi
-ocamlc -custom -output-obj -o $camlobjfile $camlopts com.cma $camlobjs &&
+$ocamlc -output-obj -o $camlobjfile $camlopts $com_lib $camlobjs &&
link /nologo /incremental:no /dll /machine:ix86
/out:${output} /libpath:$camllib
/export:DllGetClassObject,@2,PRIVATE
@@ -79,7 +93,7 @@
$resfile
$linkopts $camlobjfile $linkobjs
${camllib}\cfactory.obj libcamlidl.lib \
exitcode=$?
rm -f $resfile $camlobjfile
exit $exitcode
[---cut---]
Hope to hear from you soon,
Dmitry
The text was updated successfully, but these errors were encountered: