From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Liu Newsgroups: gmane.emacs.devel Subject: native-comp: load-true-file-name compatibility Date: Tue, 08 Sep 2020 06:55:04 -0700 Message-ID: <87o8mgfk5j.fsf@nivekuil.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21098"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.3; emacs 28.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 08 15:56:39 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFe6w-0005OT-DU for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Sep 2020 15:56:38 +0200 Original-Received: from localhost ([::1]:48816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFe6v-0003jn-GY for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Sep 2020 09:56:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFe5a-00025I-PE for emacs-devel@gnu.org; Tue, 08 Sep 2020 09:55:14 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFe5Y-00021b-8J for emacs-devel@gnu.org; Tue, 08 Sep 2020 09:55:14 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1599573308; cv=none; d=zohomail.com; s=zohoarc; b=PLmETe542sZd8rES8SHdh2gslsJ6AjRO9OqJ5Ym9Znzd98nXjan8G9DwMZyeF8E2WFc4IQGXfezWo40GlnszIybI0Wv34hhFUzzwoxRqfE/vTmxWqzNhrPRkXT8ULoq04pQJ229Xa0JkuxjwuQiIlqF4afrsbdSx048ivc6yZYc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599573308; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=YJZ3tnZMYUMm6ZvQUq+6pGT3yVLNux6+6PDvfpf8XjQ=; b=h3LC6c76a1zY3ffsS9zGJ0nGLMsmvJZGQNFEbVhEV+cww6WaMgzjoBRDsESPnLPIpnFdhIn76A1MxZ+OH1SlfGkYAQ8lUgKKS7Qb+gs1JsQu3cOhOb8H7ypK33poya6hiPs7WUdfvUssNEgzLxocVeKdf6bHD+FBkMLfkHTcAac= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=nivekuil.com; spf=pass smtp.mailfrom=kevin@nivekuil.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1599573308; s=mail; d=nivekuil.com; i=kevin@nivekuil.com; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=YJZ3tnZMYUMm6ZvQUq+6pGT3yVLNux6+6PDvfpf8XjQ=; b=FcO1XpoE2+FUX3c3AHinLC8jiE9RmEvHoLpIrX4NpMNJm33m6detqRi9e+kRmzJV nlDGBA67hEcxuH+3QrO7EjNYYQF5DBcsfE+NEw5sM3/deIgw7nBLsdduQxaBiRY3X2r t597bxfSP97EzGhUvv9Cja6ZtT94qeN7DMQKul0Q= Original-Received: from machina (71.212.130.196 [71.212.130.196]) by mx.zohomail.com with SMTPS id 15995733056941012.7175504038984; Tue, 8 Sep 2020 06:55:05 -0700 (PDT) X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=kevin@nivekuil.com; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/08 09:55:09 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254730 Archived-At: I have come across some code that looks like this: (defconst sayid-version (eval-when-compile (lm-version load-file-name))) In native-comp I believe it has to use load-true-file-name instead, however this variable only exists in native-comp. What is a good way to make this code compatible for both branches?