Skip to content

Install native versions of tools by default.#587

Merged
damiendoligez merged 1 commit intoocaml:trunkfrom
DemiMarie:native-by-default2
Jun 7, 2016
Merged

Install native versions of tools by default.#587
damiendoligez merged 1 commit intoocaml:trunkfrom
DemiMarie:native-by-default2

Conversation

@DemiMarie
Copy link
Contributor

Previously, ocamlc, ocamlopt, ocamllex, and ocamldep defaulted
to the bytecode versions of the tools. However, there is normally no
advantage to the bytecode versions if the native-code versions are
available, except in unusual circumstances. Instead, install the
native-code versions without the .opt suffix. They are still
installed with the .opt suffix for backwards compatibility. Finally,
install the bytecode versions with the .byte suffix, and build
native-code versions of tools that are not currently built in native
code.

Also, remove some duplication in tools/Makefile.shared.

Supersedes GPR #512.

@DemiMarie DemiMarie mentioned this pull request May 16, 2016
@DemiMarie DemiMarie force-pushed the native-by-default2 branch from 6be7b06 to 1845a6e Compare May 16, 2016 20:45
CAMLC=$(CAMLRUN) ../boot/ocamlc -nostdlib -I ../boot -use-prims ../byterun/primitives
CAMLOPT=$(CAMLRUN) ../ocamlopt -nostdlib -I ../stdlib
CAMLC=$(CAMLRUN) ../boot/ocamlc -nostdlib -I ../boot -use-prims \
../byterun/primitives -I ..
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to add -I .. ? AFAICT, there shouldn't be any .cmi files in ..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Many files are referred to by paths that are relative to .., if I remember correctly.

Copy link
Member

@damiendoligez damiendoligez May 31, 2016

Choose a reason for hiding this comment

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

This -I .. is redundant with the one on line 54.

@DemiMarie DemiMarie force-pushed the native-by-default2 branch from b28f48a to bc282b8 Compare June 3, 2016 20:10
Previously, `ocamlc`, `ocamlopt`, `ocamllex`, and `ocamldep` defaulted
to the bytecode versions of the tools.  However, there is normally no
advantage to the bytecode versions if the native-code versions are
available, except in unusual circumstances.  Instead, install the
native-code versions without the `.opt` suffix.  They are still
installed with the `.opt` suffix for backwards compatibility.  Finally,
install the bytecode versions with the `.byte` suffix, and build
native-code versions of tools that are not currently built in native
code.

Also, remove some duplication in tools/Makefile.shared.

Supersedes GPR ocaml#512.
@DemiMarie DemiMarie force-pushed the native-by-default2 branch from fad2625 to d89af40 Compare June 6, 2016 18:46
@DemiMarie
Copy link
Contributor Author

Squashed.

@damiendoligez damiendoligez merged commit 35a75c6 into ocaml:trunk Jun 7, 2016
@DemiMarie DemiMarie deleted the native-by-default2 branch June 10, 2016 01:09
camlspotter pushed a commit to camlspotter/ocaml that referenced this pull request Oct 17, 2017
Install native versions of tools by default.
@dra27 dra27 mentioned this pull request Jun 23, 2020
@dra27 dra27 mentioned this pull request Mar 15, 2021
stedolan pushed a commit to stedolan/ocaml that referenced this pull request May 24, 2022
Caused by an undetected conflict between ocaml#556 and ocaml#547
EmileTrotignon pushed a commit to EmileTrotignon/ocaml that referenced this pull request Jan 12, 2024
Pages accessible using different URLs shall include a canonical
link, indicating which URL is the best (search Google for “consolidate
duplicates URLs”). This is useful for web crawlers. Ahrefs reports
“Duplicate pages without canonical” as an issue. This patch adds
canonical links to several pages.

Main tag generation takes place in layout.eml.

Often, it is sufficient to pass the right URL to `Layout.render`. This is
the case for:

* about.eml
* academic_users.eml
* best_pratices.eml
* blog.eml
* books.eml
* community.eml
* industrial_users.eml
* jobs.eml
* learn.eml
* news.eml
* packages.eml
* papers.eml
* platform.eml
* problems.eml
* releases.eml
* tutorial.eml

A few others are almost the same, except some obvious path part needs
to be appended. This is the case for:

* news_post.eml
* release.eml
* success_story.eml
* workshop.eml

Other changes include parameter forwarding:

* learn_layout.eml
* ocamlorg_frontend.ml
* page.eml
* tutorial.eml

In home.eml, the empty string is used to have "https://ocaml.org" be
the best URL (without trailing slash)

In handler.ml a combination of parameter forwarding and canonical
URL setting takes place.

In playground.eml, the string "https://ocaml.org" is hardwired a
second time because it uses an ad-hoc layout.

No canonical link is generated in not_found.eml, on purpose.
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

Successfully merging this pull request may close these issues.

2 participants